Skip to content

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

feat: update postgrest-dart docs

dshukertjr14ee3ebe8099
diff --git a/apps/reference/_supabase_dart/generated/containedby.mdx b/apps/reference/_supabase_dart/generated/containedby.mdx
index fb8ea8fcf7f..0e09e8326fd 100644
--- a/apps/reference/_supabase_dart/generated/containedby.mdx
+++ b/apps/reference/_supabase_dart/generated/containedby.mdx
@@ -48,8 +48,7 @@ final data = await supabase
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .containedBy('main_exports', ['cars', 'food', 'machine'])
- .execute();
+ .containedBy('main_exports', ['cars', 'food', 'machine']);
```
diff --git a/apps/reference/_supabase_dart/generated/contains.mdx b/apps/reference/_supabase_dart/generated/contains.mdx
index 4349bd001b9..c1a7823d494 100644
--- a/apps/reference/_supabase_dart/generated/contains.mdx
+++ b/apps/reference/_supabase_dart/generated/contains.mdx
@@ -9,11 +9,10 @@ import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, main_exports')
- .contains('main_exports', ['oil'])
- .execute();
+ .contains('main_exports', ['oil']);
```
## Examples
@@ -21,39 +20,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, main_exports')
- .contains('main_exports', ['oil'])
- .execute();
+ .contains('main_exports', ['oil']);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
- .contains('main_exports', ['oil'])
- .execute();
+ .contains('main_exports', ['oil']);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.delete()
- .contains('main_exports', ['oil'])
- .execute();
+ .contains('main_exports', ['oil']);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .contains('main_exports', ['oil'])
- .execute();
+ .contains('main_exports', ['oil']);
```
diff --git a/apps/reference/_supabase_dart/generated/delete.mdx b/apps/reference/_supabase_dart/generated/delete.mdx
index 5f7de2ff42b..d94a6df55bf 100644
--- a/apps/reference/_supabase_dart/generated/delete.mdx
+++ b/apps/reference/_supabase_dart/generated/delete.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Performs a DELETE on the table.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .match({ 'id': 666 })
- .execute();
+ .match({ 'id': 666 });
```
## Notes
@@ -27,9 +26,8 @@ final res = await supabase
### Delete records
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .match({ 'id': 666 })
- .execute();
+ .match({ 'id': 666 });
```
diff --git a/apps/reference/_supabase_dart/generated/eq.mdx b/apps/reference/_supabase_dart/generated/eq.mdx
index af396084f38..1cb74567cc5 100644
--- a/apps/reference/_supabase_dart/generated/eq.mdx
+++ b/apps/reference/_supabase_dart/generated/eq.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value on the stated `column` exactly matches the specified `value`.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .eq('name', 'The shire')
- .execute();
+ .eq('name', 'The shire');
```
## Examples
@@ -23,39 +22,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .eq('name', 'The shire')
- .execute();
+ .eq('name', 'The shire');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .eq('name', 'San Francisco')
- .execute();
+ .eq('name', 'San Francisco');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .eq('name', 'Mordor')
- .execute();
+ .eq('name', 'Mordor');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .eq('name', 'San Francisco')
- .execute();
+ .eq('name', 'San Francisco');
```
diff --git a/apps/reference/_supabase_dart/generated/filter.mdx b/apps/reference/_supabase_dart/generated/filter.mdx
index 9f41c021f89..253945c18ad 100644
--- a/apps/reference/_supabase_dart/generated/filter.mdx
+++ b/apps/reference/_supabase_dart/generated/filter.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose `column` satisfies the filter.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .filter('name', 'in', '("Paris","Tokyo")')
- .execute();
+ .filter('name', 'in', '("Paris","Tokyo")');
```
## Notes
@@ -33,38 +32,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .filter('name', 'in', '("Paris","Tokyo")')
- .execute();
+ .filter('name', 'in', '("Paris","Tokyo")');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .filter('name', 'in', '("Paris","Tokyo")')
- .execute();
+ .filter('name', 'in', '("Paris","Tokyo")');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .filter('name', 'in', '("Paris","Tokyo")')
- .execute();
+ .filter('name', 'in', '("Paris","Tokyo")');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
.filter('name', 'in', '("Paris","Tokyo")')
```
@@ -72,9 +68,8 @@ final res = await supabase
### Filter embedded resources
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, countries ( name )')
- .filter('countries.name', 'in', '("France","Japan")')
- .execute();
+ .filter('countries.name', 'in', '("France","Japan")');
```
diff --git a/apps/reference/_supabase_dart/generated/gt.mdx b/apps/reference/_supabase_dart/generated/gt.mdx
index 7bc6f4c15b1..c2f9e44d6a1 100644
--- a/apps/reference/_supabase_dart/generated/gt.mdx
+++ b/apps/reference/_supabase_dart/generated/gt.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value on the stated `column` is greater than the specified `value`.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .gt('country_id', 250)
- .execute();
+ .gt('country_id', 250);
```
## Examples
@@ -23,39 +22,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .gt('country_id', 250)
- .execute();
+ .gt('country_id', 250);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .gt('country_id', 250)
- .execute();
+ .gt('country_id', 250);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .gt('country_id', 250)
- .execute();
+ .gt('country_id', 250);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .gt('country_id', 250)
- .execute();
+ .gt('country_id', 250);
```
diff --git a/apps/reference/_supabase_dart/generated/gte.mdx b/apps/reference/_supabase_dart/generated/gte.mdx
index c9a36c36cd8..d64aab2d69d 100644
--- a/apps/reference/_supabase_dart/generated/gte.mdx
+++ b/apps/reference/_supabase_dart/generated/gte.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value on the stated `column` is greater than or equal to the specified `value`.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .gte('country_id', 250)
- .execute();
+ .gte('country_id', 250);
```
## Examples
@@ -23,39 +22,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .gte('country_id', 250)
- .execute();
+ .gte('country_id', 250);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .gte('country_id', 250)
- .execute();
+ .gte('country_id', 250);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .gte('country_id', 250)
- .execute();
+ .gte('country_id', 250);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .gte('country_id', 250)
- .execute();
+ .gte('country_id', 250);
```
diff --git a/apps/reference/_supabase_dart/generated/ilike.mdx b/apps/reference/_supabase_dart/generated/ilike.mdx
index 88bd0f5ad70..202f61746e3 100644
--- a/apps/reference/_supabase_dart/generated/ilike.mdx
+++ b/apps/reference/_supabase_dart/generated/ilike.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value in the stated `column` matches the supplied `pattern` (case insensitive).
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .ilike('name', '%la%')
- .execute();
+ .ilike('name', '%la%');
```
## Examples
@@ -23,39 +22,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .ilike('name', '%la%')
- .execute();
+ .ilike('name', '%la%');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .ilike('name', '%la%')
- .execute();
+ .ilike('name', '%la%');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .ilike('name', '%la%')
- .execute();
+ .ilike('name', '%la%');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .ilike('name', '%la%')
- .execute();
+ .ilike('name', '%la%');
```
diff --git a/apps/reference/_supabase_dart/generated/in_.mdx b/apps/reference/_supabase_dart/generated/in_.mdx
index be147c9fc43..5bfef4a1107 100644
--- a/apps/reference/_supabase_dart/generated/in_.mdx
+++ b/apps/reference/_supabase_dart/generated/in_.mdx
@@ -13,11 +13,10 @@ Finds all rows whose value on the stated `column` is found on the specified `val
`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .in_('name', ['Rio de Janeiro', 'San Francisco'])
- .execute();
+ .in_('name', ['Rio de Janeiro', 'San Francisco']);
```
## Examples
@@ -25,39 +24,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .in_('name', ['Rio de Janeiro', 'San Francisco'])
- .execute();
+ .in_('name', ['Rio de Janeiro', 'San Francisco']);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .in_('name', ['Rio de Janeiro', 'San Francisco'])
- .execute();
+ .in_('name', ['Rio de Janeiro', 'San Francisco']);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .in_('name', ['Rio de Janeiro', 'San Francisco'])
- .execute();
+ .in_('name', ['Rio de Janeiro', 'San Francisco']);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .in_('name', ['Rio de Janeiro', 'San Francisco'])
- .execute();
+ .in_('name', ['Rio de Janeiro', 'San Francisco']);
```
diff --git a/apps/reference/_supabase_dart/generated/insert.mdx b/apps/reference/_supabase_dart/generated/insert.mdx
index 6330ee63c0c..201f39357fb 100644
--- a/apps/reference/_supabase_dart/generated/insert.mdx
+++ b/apps/reference/_supabase_dart/generated/insert.mdx
@@ -11,11 +11,11 @@ import TabItem from '@theme/TabItem'
Performs an INSERT into the table.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.insert([
{'name': 'The Shire', 'country_id': 554}
- ]).execute();
+ ]);
```
## Notes
@@ -29,20 +29,20 @@ final res = await supabase
### Create a record
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.insert([
{'name': 'The Shire', 'country_id': 554}
- ]).execute();
+ ]);
```
### Bulk create
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.insert([
{'name': 'The Shire', 'country_id': 554},
{'name': 'Rohan', 'country_id': 555},
- ]).execute();
+ ]);
```
diff --git a/apps/reference/_supabase_dart/generated/is_.mdx b/apps/reference/_supabase_dart/generated/is_.mdx
index 89e4b117d88..daae2c1e29b 100644
--- a/apps/reference/_supabase_dart/generated/is_.mdx
+++ b/apps/reference/_supabase_dart/generated/is_.mdx
@@ -13,11 +13,10 @@ A check for exact equality (null, true, false), finds all rows whose value on th
`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .is_('name', null)
- .execute();
+ .is_('name', null);
```
## Examples
@@ -25,39 +24,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .is_('name', null)
- .execute();
+ .is_('name', null);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .is_('name', null)
- .execute();
+ .is_('name', null);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .is_('name', null)
- .execute();
+ .is_('name', null);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .is_('name', null)
- .execute();
+ .is_('name', null);
```
diff --git a/apps/reference/_supabase_dart/generated/like.mdx b/apps/reference/_supabase_dart/generated/like.mdx
index 69ec224c02e..3bb8f1aacdb 100644
--- a/apps/reference/_supabase_dart/generated/like.mdx
+++ b/apps/reference/_supabase_dart/generated/like.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive).
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .like('name', '%la%')
- .execute();
+ .like('name', '%la%');
```
## Parameters
@@ -69,39 +68,35 @@ The pattern to filter with.
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .like('name', '%la%')
- .execute();
+ .like('name', '%la%');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .like('name', '%la%')
- .execute();
+ .like('name', '%la%');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .like('name', '%la%')
- .execute();
+ .like('name', '%la%');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .like('name', '%la%')
- .execute();
+ .like('name', '%la%');
```
diff --git a/apps/reference/_supabase_dart/generated/limit.mdx b/apps/reference/_supabase_dart/generated/limit.mdx
index 69358c1d106..e1dd3bc9d51 100644
--- a/apps/reference/_supabase_dart/generated/limit.mdx
+++ b/apps/reference/_supabase_dart/generated/limit.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Limits the result with the specified count.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .limit(1)
- .execute();
+ .limit(1);
```
## Examples
@@ -23,20 +22,18 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .limit(1)
- .execute();
+ .limit(1);
```
### With embedded resources
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, cities(name)')
.eq('name', 'United States')
- .limit(1, foreignTable: 'cities' )
- .execute();
+ .limit(1, foreignTable: 'cities' );
```
diff --git a/apps/reference/_supabase_dart/generated/lt.mdx b/apps/reference/_supabase_dart/generated/lt.mdx
index 130a5a09de7..2d8f3506dc2 100644
--- a/apps/reference/_supabase_dart/generated/lt.mdx
+++ b/apps/reference/_supabase_dart/generated/lt.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value on the stated `column` is less than the specified `value`.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .lt('country_id', 250)
- .execute();
+ .lt('country_id', 250);
```
## Examples
@@ -23,39 +22,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .lt('country_id', 250)
- .execute();
+ .lt('country_id', 250);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .lt('country_id', 250)
- .execute();
+ .lt('country_id', 250);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .lt('country_id', 250)
- .execute();
+ .lt('country_id', 250);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .lt('country_id', 250)
- .execute();
+ .lt('country_id', 250);
```
diff --git a/apps/reference/_supabase_dart/generated/lte.mdx b/apps/reference/_supabase_dart/generated/lte.mdx
index 15fa4ac1280..5f33a32f83e 100644
--- a/apps/reference/_supabase_dart/generated/lte.mdx
+++ b/apps/reference/_supabase_dart/generated/lte.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value on the stated `column` is less than or equal to the specified `value`.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .lte('country_id', 250)
- .execute();
+ .lte('country_id', 250);
```
## Parameters
@@ -69,39 +68,35 @@ The value to filter with.
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .lte('country_id', 250)
- .execute();
+ .lte('country_id', 250);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .lte('country_id', 250)
- .execute();
+ .lte('country_id', 250);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .lte('country_id', 250)
- .execute();
+ .lte('country_id', 250);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .lte('country_id', 250)
- .execute();
+ .lte('country_id', 250);
```
diff --git a/apps/reference/_supabase_dart/generated/match.mdx b/apps/reference/_supabase_dart/generated/match.mdx
index d5f51720cc7..91c0a592d65 100644
--- a/apps/reference/_supabase_dart/generated/match.mdx
+++ b/apps/reference/_supabase_dart/generated/match.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose columns match the specified `query` object.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .match({'name': 'Beijing', 'country_id': 156})
- .execute();
+ .match({'name': 'Beijing', 'country_id': 156});
```
## Examples
@@ -23,39 +22,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .match({'name': 'Beijing', 'country_id': 156})
- .execute();
+ .match({'name': 'Beijing', 'country_id': 156});
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .match({'name': 'Beijing', 'country_id': 156})
- .execute();
+ .match({'name': 'Beijing', 'country_id': 156});
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .match({'name': 'Beijing', 'country_id': 156})
- .execute();
+ .match({'name': 'Beijing', 'country_id': 156});
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .match({'name': 'Beijing', 'country_id': 156})
- .execute();
+ .match({'name': 'Beijing', 'country_id': 156});
```
diff --git a/apps/reference/_supabase_dart/generated/neq.mdx b/apps/reference/_supabase_dart/generated/neq.mdx
index 8634f355312..819ef1006ab 100644
--- a/apps/reference/_supabase_dart/generated/neq.mdx
+++ b/apps/reference/_supabase_dart/generated/neq.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows whose value on the stated `column` doesn't match the specified `value`.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .neq('name', 'The shire')
- .execute();
+ .neq('name', 'The shire');
```
## Examples
@@ -23,39 +22,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .neq('name', 'The shire')
- .execute();
+ .neq('name', 'The shire');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .neq('name', 'San Francisco')
- .execute();
+ .neq('name', 'San Francisco');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .neq('name', 'Mordor')
- .execute();
+ .neq('name', 'Mordor');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities')
- .neq('name', 'Lagos')
- .execute();
+ .neq('name', 'Lagos');
```
diff --git a/apps/reference/_supabase_dart/generated/not.mdx b/apps/reference/_supabase_dart/generated/not.mdx
index a616d4ee84e..e2dffc5c3b5 100644
--- a/apps/reference/_supabase_dart/generated/not.mdx
+++ b/apps/reference/_supabase_dart/generated/not.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows which doesn't satisfy the filter.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .not('name', 'eq', 'Paris')
- .execute();
+ .not('name', 'eq', 'Paris');
```
## Notes
@@ -35,39 +34,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .not('name', 'eq', 'Paris')
- .execute();
+ .not('name', 'eq', 'Paris');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
- .not('name', 'eq', 'Paris')
- .execute();
+ .not('name', 'eq', 'Paris');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.delete()
- .not('name', 'eq', 'Paris')
- .execute();
+ .not('name', 'eq', 'Paris');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_cities)
- .not('name', 'eq', 'Paris')
- .execute();
+ .not('name', 'eq', 'Paris');
```
diff --git a/apps/reference/_supabase_dart/generated/or.mdx b/apps/reference/_supabase_dart/generated/or.mdx
index 6ff5d72f7ca..f4ebb8e3088 100644
--- a/apps/reference/_supabase_dart/generated/or.mdx
+++ b/apps/reference/_supabase_dart/generated/or.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Finds all rows satisfying at least one of the filters.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .or('id.eq.20,id.eq.30')
- .execute();
+ .or('id.eq.20,id.eq.30');
```
## Notes
@@ -33,19 +32,17 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .or('id.eq.20,id.eq.30')
- .execute();
+ .or('id.eq.20,id.eq.30');
```
### Use `or` with `and`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)')
- .execute();
+ .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)');
```
diff --git a/apps/reference/_supabase_dart/generated/order.mdx b/apps/reference/_supabase_dart/generated/order.mdx
index 3d559c632b9..1e306a81069 100644
--- a/apps/reference/_supabase_dart/generated/order.mdx
+++ b/apps/reference/_supabase_dart/generated/order.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Orders the result with the specified column.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .order('id', ascending: false )
- .execute();
+ .order('id', ascending: false );
```
## Examples
@@ -23,20 +22,18 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .order('id', ascending: false )
- .execute();
+ .order('id', ascending: false );
```
### With embedded resources
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, cities(name)')
.eq('name', 'United States')
- .order('name', foreignTable: 'cities')
- .execute();
+ .order('name', foreignTable: 'cities');
```
diff --git a/apps/reference/_supabase_dart/generated/overlaps.mdx b/apps/reference/_supabase_dart/generated/overlaps.mdx
index 3985e4f2f89..eae54bbdef2 100644
--- a/apps/reference/_supabase_dart/generated/overlaps.mdx
+++ b/apps/reference/_supabase_dart/generated/overlaps.mdx
@@ -9,11 +9,10 @@ import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, main_exports')
- .overlaps('main_exports', ['computers', 'minerals'])
- .execute();
+ .overlaps('main_exports', ['computers', 'minerals']);
```
## Examples
@@ -21,39 +20,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, main_exports')
- .overlaps('main_exports', ['computers', 'minerals'])
- .execute();
+ .overlaps('main_exports', ['computers', 'minerals']);
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
- .overlaps('main_exports', ['computers', 'minerals'])
- .execute();
+ .overlaps('main_exports', ['computers', 'minerals']);
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.delete()
- .overlaps('main_exports', ['computers', 'minerals'])
- .execute();
+ .overlaps('main_exports', ['computers', 'minerals']);
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .overlaps('main_exports', ['computers', 'minerals'])
- .execute();
+ .overlaps('main_exports', ['computers', 'minerals']);
```
diff --git a/apps/reference/_supabase_dart/generated/range.mdx b/apps/reference/_supabase_dart/generated/range.mdx
index fe8f1e987cc..25c6b2c0dbe 100644
--- a/apps/reference/_supabase_dart/generated/range.mdx
+++ b/apps/reference/_supabase_dart/generated/range.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Limits the result to rows within the specified range, inclusive.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .range(0,3)
- .execute();
+ .range(0,3);
```
## Examples
@@ -23,9 +22,8 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .range(0,3)
- .execute();
+ .range(0,3);
```
diff --git a/apps/reference/_supabase_dart/generated/rangeadjacent.mdx b/apps/reference/_supabase_dart/generated/rangeadjacent.mdx
index 002f1ee8c73..f3b85d3275c 100644
--- a/apps/reference/_supabase_dart/generated/rangeadjacent.mdx
+++ b/apps/reference/_supabase_dart/generated/rangeadjacent.mdx
@@ -9,11 +9,10 @@ import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeAdjacent('population_range_millions', '[70, 185]')
- .execute();
+ .rangeAdjacent('population_range_millions', '[70, 185]');
```
## Examples
@@ -21,39 +20,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeAdjacent('population_range_millions', '[70, 185]')
- .execute();
+ .rangeAdjacent('population_range_millions', '[70, 185]');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
- .rangeAdjacent('population_range_millions', '[70, 185]')
- .execute();
+ .rangeAdjacent('population_range_millions', '[70, 185]');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.delete()
- .rangeAdjacent('population_range_millions', '[70, 185]')
- .execute();
+ .rangeAdjacent('population_range_millions', '[70, 185]');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .rangeAdjacent('population_range_millions', '[70, 185]')
- .execute();
+ .rangeAdjacent('population_range_millions', '[70, 185]');
```
diff --git a/apps/reference/_supabase_dart/generated/rangegt.mdx b/apps/reference/_supabase_dart/generated/rangegt.mdx
index 1a44b170727..259d2aac135 100644
--- a/apps/reference/_supabase_dart/generated/rangegt.mdx
+++ b/apps/reference/_supabase_dart/generated/rangegt.mdx
@@ -9,11 +9,10 @@ import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeGt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGt('population_range_millions', '[150, 250]');
```
## Examples
@@ -21,39 +20,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeGt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGt('population_range_millions', '[150, 250]');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
- .rangeGt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGt('population_range_millions', '[150, 250]');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.delete()
- .rangeGt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGt('population_range_millions', '[150, 250]');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .rangeGt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGt('population_range_millions', '[150, 250]');
```
diff --git a/apps/reference/_supabase_dart/generated/rangegte.mdx b/apps/reference/_supabase_dart/generated/rangegte.mdx
index a641d5eeba9..8d6888ce0fd 100644
--- a/apps/reference/_supabase_dart/generated/rangegte.mdx
+++ b/apps/reference/_supabase_dart/generated/rangegte.mdx
@@ -9,11 +9,10 @@ import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeGte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGte('population_range_millions', '[150, 250]');
```
## Examples
@@ -21,39 +20,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeGte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGte('population_range_millions', '[150, 250]');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
- .rangeGte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGte('population_range_millions', '[150, 250]');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.delete()
- .rangeGte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGte('population_range_millions', '[150, 250]');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .rangeGte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeGte('population_range_millions', '[150, 250]');
```
diff --git a/apps/reference/_supabase_dart/generated/rangelt.mdx b/apps/reference/_supabase_dart/generated/rangelt.mdx
index 99f8484a912..a9c27e4b7d0 100644
--- a/apps/reference/_supabase_dart/generated/rangelt.mdx
+++ b/apps/reference/_supabase_dart/generated/rangelt.mdx
@@ -9,11 +9,10 @@ import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeLt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLt('population_range_millions', '[150, 250]');
```
## Examples
@@ -21,39 +20,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeLt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLt('population_range_millions', '[150, 250]');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
- .rangeLt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLt('population_range_millions', '[150, 250]');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.delete()
- .rangeLt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLt('population_range_millions', '[150, 250]');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .rangeLt('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLt('population_range_millions', '[150, 250]');
```
diff --git a/apps/reference/_supabase_dart/generated/rangelte.mdx b/apps/reference/_supabase_dart/generated/rangelte.mdx
index 548b61c2668..68f4f7fd496 100644
--- a/apps/reference/_supabase_dart/generated/rangelte.mdx
+++ b/apps/reference/_supabase_dart/generated/rangelte.mdx
@@ -9,11 +9,10 @@ import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeLte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLte('population_range_millions', '[150, 250]');
```
## Examples
@@ -21,39 +20,35 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('name, id, population_range_millions')
- .rangeLte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLte('population_range_millions', '[150, 250]');
```
### With `update()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
- .rangeLte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLte('population_range_millions', '[150, 250]');
```
### With `delete()`
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.delete()
- .rangeLte('population_range_millions', '[150, 250]')
- .execute();
+ .rangeLte('population_range_millions', '[150, 250]');
```
### With `rpc()`
```dart
// Only valid if the Stored Procedure returns a table type.
-final res = await supabase
+final data = await supabase
.rpc('echo_all_countries')
- .rangeLte('population_range_millions', [150, 250])
- .execute();
+ .rangeLte('population_range_millions', [150, 250]);
```
diff --git a/apps/reference/_supabase_dart/generated/reset-password-email.mdx b/apps/reference/_supabase_dart/generated/reset-password-email.mdx
index d7c61047c9f..10bbfcb0607 100644
--- a/apps/reference/_supabase_dart/generated/reset-password-email.mdx
+++ b/apps/reference/_supabase_dart/generated/reset-password-email.mdx
@@ -12,8 +12,6 @@ Sends a reset request to an email address.
```dart
final res = await supabase.auth.api.resetPasswordForEmail('[email protected]');
-
-final error = res.error;
```
## Notes
@@ -41,8 +39,6 @@ final res = await supabase.auth.api.updateUser(
```dart
final res = await supabase.auth.api.resetPasswordForEmail('[email protected]');
-
-final error = res.error;
```
### Reset password for Flutter
@@ -56,6 +52,4 @@ final res = await supabase.auth.api.resetPasswordForEmail(
? null
: 'io.supabase.flutter://reset-callback/'),
);
-
-final error = res.error;
```
diff --git a/apps/reference/_supabase_dart/generated/rpc.mdx b/apps/reference/_supabase_dart/generated/rpc.mdx
index 78f0367e7a6..8e1dfe9daa2 100644
--- a/apps/reference/_supabase_dart/generated/rpc.mdx
+++ b/apps/reference/_supabase_dart/generated/rpc.mdx
@@ -14,9 +14,8 @@ That's a fancy way of saying that you can put some logic into your database then
It's especially useful when the logic rarely changes - like password resets and updates.
```dart
-final res = await supabase
- .rpc('hello_world')
- .execute();
+final data = await supabase
+ .rpc('hello_world');
```
## Examples
@@ -26,17 +25,15 @@ final res = await supabase
This is an example invoking a stored procedure.
```dart
-final res = await supabase
- .rpc('hello_world')
- .execute();
+final data = await supabase
+ .rpc('hello_world');
```
### With Parameters
```dart
-final res = await supabase
- .rpc('echo_city', params: { 'name': 'The Shire' })
- .execute();
+final data = await supabase
+ .rpc('echo_city', params: { 'name': 'The Shire' });
```
### With count option
@@ -45,7 +42,7 @@ You can specify a count option to get the row count along with your data.
Allowed values for count option are `exact`, `planned` and `estimated`.
```dart
-final res = await supabase
+final data = await supabase
.rpc('hello_world')
.execute(count: CountOption.exact);
```
diff --git a/apps/reference/_supabase_dart/generated/select.mdx b/apps/reference/_supabase_dart/generated/select.mdx
index 827be2a3f6a..42eb6bfc5fb 100644
--- a/apps/reference/_supabase_dart/generated/select.mdx
+++ b/apps/reference/_supabase_dart/generated/select.mdx
@@ -11,13 +11,9 @@ import TabItem from '@theme/TabItem'
Performs vertical filtering with SELECT.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
- .select()
- .execute();
-
-final data = res.data;
-final error = res.error;
+ .select();
```
## Notes
@@ -32,13 +28,9 @@ final error = res.error;
### Getting your data
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
- .select()
- .execute();
-
-final data = res.data;
-final error = res.error;
+ .select();
```
### Selecting specific columns
@@ -46,10 +38,9 @@ final error = res.error;
You can select specific fields from your tables.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
- .select('name')
- .execute();
+ .select('name');
```
### Query foreign tables
@@ -57,15 +48,14 @@ final res = await supabase
If your database has relationships, you can query related tables too.
```dart
-final res = await supabase
+final data = await supabase
.from('countries')
.select('''
name,
cities (
name
)
- ''')
- .execute();
+ ''');
```
### Query the same foreign table multiple times
@@ -78,14 +68,13 @@ and we wanted to get the supplier and the purchaser at the same time
(both in the users) table:
```dart
-final res = await supabase
+final data = await supabase
.from('products')
.select('''
id,
supplier:supplier_id ( name ),
purchaser:purchaser_id ( name )
- ''')
- .execute();
+ ''');
```
### Filtering with inner joins
@@ -94,11 +83,10 @@ If you want to filter a table based on a child table's values you can use the `!
to select all rows in a `message` table which belong to a user with the `username` "Jane":
```dart
-final res = await supabase
+final data = await supabase
.from('messages')
.select('*, users!inner(*)')
- .eq('users.username', 'Jane')
- .execute();
+ .eq('users.username', 'Jane');
```
### Querying with count option
@@ -107,7 +95,7 @@ You can get the number of rows by using the count option.
Allowed values for count option are [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count).
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name')
.execute(count: CountOption.exact);
@@ -124,14 +112,13 @@ for querying JSON data. Also see
[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details.
```dart
-final res = await supabase
+final data = await supabase
.from('users')
.select('''
id, name,
address->street
''')
- .eq('address->postcode', 90210)
- .execute();
+ .eq('address->postcode', 90210);
```
### Return data as CSV
@@ -139,9 +126,8 @@ final res = await supabase
By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values.
```dart
-final res = await supabase
+final data = await supabase
.from('users')
.select()
- .csv()
- .execute();
+ .csv();
```
diff --git a/apps/reference/_supabase_dart/generated/single.mdx b/apps/reference/_supabase_dart/generated/single.mdx
index 04a9c0c853a..93cf85294f3 100644
--- a/apps/reference/_supabase_dart/generated/single.mdx
+++ b/apps/reference/_supabase_dart/generated/single.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Retrieves only one row from the result. Result must be one row (e.g. using limit), otherwise this will result in an error.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .single()
- .execute();
+ .single();
```
## Examples
@@ -23,9 +22,8 @@ final res = await supabase
### With `select()`
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .single()
- .execute();
+ .single();
```
diff --git a/apps/reference/_supabase_dart/generated/textsearch.mdx b/apps/reference/_supabase_dart/generated/textsearch.mdx
index 810eeb04b7a..2b290e1ab27 100644
--- a/apps/reference/_supabase_dart/generated/textsearch.mdx
+++ b/apps/reference/_supabase_dart/generated/textsearch.mdx
@@ -15,13 +15,12 @@ Finds all rows whose tsvector value on the stated `column` matches to_tsquery(qu
### Text search
```dart
-final res = await supabase
+final data = await supabase
.from('quotes')
.select('catchphrase')
.textSearch('catchphrase', "'fat' & 'cat'",
config: 'english'
- )
- .execute();
+ );
```
### Basic normalization
@@ -29,14 +28,13 @@ final res = await supabase
Uses PostgreSQL's `plainto_tsquery` function.
```dart
-final res = await supabase
+final data = await supabase
.from('quotes')
.select('catchphrase')
.textSearch('catchphrase', "'fat' & 'cat'",
type: TextSearchType.plain,
config: 'english'
- )
- .execute();
+ );
```
### Full normalization
@@ -44,14 +42,13 @@ final res = await supabase
Uses PostgreSQL's `phraseto_tsquery` function.
```dart
-final res = await supabase
+final data = await supabase
.from('quotes')
.select('catchphrase')
.textSearch('catchphrase', "'fat' & 'cat'",
type: TextSearchType.phrase,
config: 'english'
- )
- .execute();
+ );
```
### Full normalization
@@ -66,12 +63,11 @@ with advanced operators.
- `-`: a dash will be converted to the ! operator.
```dart
-final res = await supabase
+final data = await supabase
.from('quotes')
.select('catchphrase')
.textSearch('catchphrase', "'fat or cat'",
type: TextSearchType.websearch,
config: 'english'
- )
- .execute();
+ );
```
diff --git a/apps/reference/_supabase_dart/generated/update.mdx b/apps/reference/_supabase_dart/generated/update.mdx
index 280172efbed..19f8d6335a3 100644
--- a/apps/reference/_supabase_dart/generated/update.mdx
+++ b/apps/reference/_supabase_dart/generated/update.mdx
@@ -11,11 +11,10 @@ import TabItem from '@theme/TabItem'
Performs an UPDATE on the table.
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Middle Earth' })
- .match({ 'name': 'Auckland' })
- .execute();
+ .match({ 'name': 'Auckland' });
```
## Notes
@@ -27,11 +26,10 @@ final res = await supabase
### Updating your data
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.update({ 'name': 'Middle Earth' })
- .match({ 'name': 'Auckland' })
- .execute();
+ .match({ 'name': 'Auckland' });
```
### Updating JSON data
@@ -42,7 +40,7 @@ for working with JSON data. Right now it is only possible to update an entire JS
but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys.
```dart
-final res = await supabase
+final data = await supabase
.from('users')
.update({
'address': {
@@ -50,6 +48,5 @@ final res = await supabase
'postcode': 90210
}
})
- .eq('address->postcode', 90210)
- .execute();
+ .eq('address->postcode', 90210);
```
diff --git a/apps/reference/_supabase_dart/generated/upsert.mdx b/apps/reference/_supabase_dart/generated/upsert.mdx
index 5230a5dab54..e295e133589 100644
--- a/apps/reference/_supabase_dart/generated/upsert.mdx
+++ b/apps/reference/_supabase_dart/generated/upsert.mdx
@@ -11,10 +11,9 @@ import TabItem from '@theme/TabItem'
Performs an UPSERT into the table.
```dart
-final res = await supabase
+final data = await supabase
.from('messages')
- .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' })
- .execute();
+ .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' });
```
## Notes
@@ -27,10 +26,9 @@ final res = await supabase
### Upsert your data
```dart
-final res = await supabase
+final data = await supabase
.from('messages')
- .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' })
- .execute();
+ .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' });
```
### Upserting into tables with constraints
@@ -40,10 +38,9 @@ If the username 'supabot' already exists, the `onConflict` argument tells supaba
based on the column passed into `onConflict`.
```dart
-final res = await supabase
+final data = await supabase
.from('users')
- .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' })
- .execute();
+ .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' });
```
### Return the exact number of rows
@@ -51,7 +48,7 @@ final res = await supabase
Allowed values for count option are `exact`, `planned` and `estimated`.
```dart
-final res = await supabase
+final data = await supabase
.from('users')
.upsert({
'id': 3,
diff --git a/apps/reference/_supabase_dart/generated/using-filters.mdx b/apps/reference/_supabase_dart/generated/using-filters.mdx
index 839a35fc748..71e13bf36af 100644
--- a/apps/reference/_supabase_dart/generated/using-filters.mdx
+++ b/apps/reference/_supabase_dart/generated/using-filters.mdx
@@ -17,17 +17,15 @@ If a Stored Procedure returns a table response, you can also apply filters.
You must apply your filters to the end of your query. For example:
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
- .eq('name', 'The Shire') // Correct
- .execute();
+ .eq('name', 'The Shire') // Correct;
-final res = await supabase
+final data = await supabase
.from('cities')
.eq('name', 'The Shire') // Incorrect
- .select('name, country_id')
- .execute();
+ .select('name, country_id');
```
### Chaining
@@ -35,10 +33,9 @@ final res = await supabase
Filters can be chained together to produce advanced queries. For example:
```dart
-final res = await supabase
+final data = await supabase
.from('cities')
.select('name, country_id')
.gte('population', 1000)
- .lt('population', 10000)
- .execute();
+ .lt('population', 10000);
```