Skip to content

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

Fix v0 filters examples

dannykng325030c21afe
diff --git a/spec/supabase_dart_v0.yml b/spec/supabase_dart_v0.yml
index c774ffacc24..e60394fc656 100644
--- a/spec/supabase_dart_v0.yml
+++ b/spec/supabase_dart_v0.yml
@@ -1249,39 +1249,36 @@ functions:
title: Using Filters
description: |
Filters can be used on `select()`, `update()`, and `delete()` queries.
-
If a Stored Procedure returns a table response, you can also apply filters.
+ Filters must be applied to the end of queries and can also be chained together to produce advanced queries.
+ examples:
+ - id: applying-filters
+ name: Applying filters
+ code: |
+ ```dart
+ final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'The Shire') // Correct
+ .execute();
- ### Applying Filters
-
- You must apply your filters to the end of your query. For example:
-
- ```dart
- final res = await supabase
- .from('cities')
- .select('name, country_id')
- .eq('name', 'The Shire') // Correct
- .execute();
-
- final res = await supabase
- .from('cities')
- .eq('name', 'The Shire') // Incorrect
- .select('name, country_id')
- .execute();
- ```
-
- ### Chaining
-
- Filters can be chained together to produce advanced queries. For example:
-
- ```dart
- final res = await supabase
- .from('cities')
- .select('name, country_id')
- .gte('population', 1000)
- .lt('population', 10000)
- .execute();
- ```
+ final res = await supabase
+ .from('cities')
+ .eq('name', 'The Shire') // Incorrect
+ .select('name, country_id')
+ .execute();
+ ```
+ - id: chaining-filters
+ name: Chaining filters
+ code: |
+ ```dart
+ final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gte('population', 1000)
+ .lt('population', 10000)
+ .execute();
+ ```
- id: or
title: or()