Skip to content

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

docs: fix a mismatch between the sample code and sample response (#28466)

Tylerb4e2b156af60
diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.yml
index c4e3c795b66..d67d0ac945f 100644
--- a/apps/docs/spec/supabase_dart_v2.yml
+++ b/apps/docs/spec/supabase_dart_v2.yml
@@ -1403,7 +1403,7 @@ functions:
name: Unsubscribe from auth subscription
code: |
```dart
- final authSubscription = supabase.auth.onAuthStateChange((event, session) {});
+ final authSubscription = supabase.auth.onAuthStateChange.listen((data) {});
authSubscription.cancel();
```
@@ -2491,8 +2491,8 @@ functions:
code: |
```dart
final data = await supabase
- .from('cities')
- .select('name');
+ .from('countries')
+ .select();
```
data:
sql: |