remove execute() from dart code

This commit is contained in:
dshukertjr committed 2023-01-12 00:00:18 +09:00
1 parent e970b59761
commit 35ae4f8a94
2 files changed
+8 -11

No files matched your search

@@ -88,9 +88,8 @@ Reference: [rpc()](../../reference/javascript/rpc)
<TabPanel id="dart" label="Dart">
```dart
final res = await supabase
.rpc('hello_world')
.execute();
final data = await supabase
.rpc('hello_world');
```
Reference: [rpc()](../../reference/dart/rpc)
@@ -199,10 +198,9 @@ const { data, error } = supabase.rpc('get_planets').eq('id', 1)
<TabPanel id="dart" label="Dart">
```dart
final res = await supabase
final data = await supabase
.rpc('get_planets')
.eq('id', 1)
.execute();
.eq('id', 1);
```
</TabPanel>
@@ -254,9 +252,8 @@ const { data, error } = await supabase.rpc('add_planet', { name: 'Jakku' })
<TabPanel id="dart" label="Dart">
```dart
final res = await supabase
.rpc('add_planet', params: { 'name': 'Jakku' })
.execute();
final data = await supabase
.rpc('add_planet', params: { 'name': 'Jakku' });
```
</TabPanel>
+2 -2
View File
@@ -206,7 +206,7 @@ const { data, error } = await supabase
<TabPanel id="dart" label="Dart">
```sql
final res = await supabase
await supabase
.from('movies')
.insert([{
name: 'The Empire Strikes Back',
@@ -214,7 +214,7 @@ final res = await supabase
}, {
name: 'Return of the Jedi',
description: 'After a daring mission to rescue Han Solo from Jabba the Hutt, the Rebels dispatch to Endor to destroy the second Death Star.'
}]).execute();
}]);
```
</TabPanel>