Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: dart doc done with modifiers

dshukertjr03ef555f53ad
diff --git a/web/spec/dart.yml b/web/spec/dart.yml
index 031fde66071..207a40cc788 100644
--- a/web/spec/dart.yml
+++ b/web/spec/dart.yml
@@ -59,13 +59,13 @@ info:
- storage.from.remove()
- storage.from.createSignedUrl()
- storage.from.getPublicUrl()
- # - name: 'Modifiers'
- # items:
- # - Using Modifiers
- # - limit()
- # - order()
- # - range()
- # - single()
+ - name: 'Modifiers'
+ items:
+ - Using Modifiers
+ - limit()
+ - order()
+ - range()
+ - single()
# - name: 'Filters'
# items:
# - Using Filters
@@ -965,3 +965,81 @@ pages:
.from('avatars')
.list();
```
+ Using Modifiers:
+ description: |
+ Modifiers can be used on `select()` queries.
+
+ If a Stored Procedure returns a table response, you can also apply modifiers to the `rpc()` function.
+
+ limit():
+ examples:
+ - name: With `select()`
+ isSpotlight: true
+ dart: |
+ ```dart
+ final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .limit(1)
+ .execute();
+ ```
+ - name: With embedded resources
+ dart: |
+ ```dart
+ final res = await supabase
+ .from('countries')
+ .select('name, cities(name)')
+ .eq('name', 'United States')
+ .limit(1, foreignTable: 'cities' )
+ .execute();
+ ```
+
+ order():
+ examples:
+ - name: With `select()`
+ isSpotlight: true
+ dart: |
+ ```dart
+ final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .order('id', ascending: false )
+ .execute();
+ ```
+ - name: With embedded resources
+ dart: |
+ ```dart
+ final res = await supabase
+ .from('countries')
+ .select('name, cities(name)')
+ .eq('name', 'United States')
+ .order('name', foreignTable: 'cities')
+ .execute();
+ ```
+
+ range():
+ examples:
+ - name: With `select()`
+ isSpotlight: true
+ dart: |
+ ```dart
+ final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .range(0,3)
+ .execute();
+ ```
+
+ single():
+ $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.single'
+ examples:
+ - name: With `select()`
+ isSpotlight: true
+ dart: |
+ ```dart
+ final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .single()
+ .execute();
+ ```