The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: add notes for `filter()`, `not()`, `or()`
Bobbie Soedirgo8a320a1d0345
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.ymlindex ebc143c4017..35a485d7ca9 100644--- a/spec/supabase_js_v2.yml+++ b/spec/supabase_js_v2.yml@@ -3711,6 +3711,13 @@ pages:not():$ref: '@supabase/postgrest-js.PostgrestFilterBuilder.not'+ notes: |+ not() expects you to use the raw PostgREST syntax for the filter values.++ ```ts+ .not('id', 'in', '(5,6,7)') // Use `()` for `in` filter+ .not('arraycol', 'cs', '{"a","b"}') // Use `cs` for `contains()`, `{}` for array values+ ```examples:- name: With `select()`description: |@@ -3768,6 +3775,13 @@ pages:or():$ref: '@supabase/postgrest-js.PostgrestFilterBuilder.or'+ notes: |+ or() expects you to use the raw PostgREST syntax for the filter names and values.++ ```ts+ .or('id.in.(5,6,7), arraycol.cs.{"a","b"}') // Use `()` for `in` filter, `{}` for array values and `cs` for `contains()`.+ .or('id.in.(5,6,7), arraycol.cd.{"a","b"}') // Use `cd` for `containedBy()`+ ```examples:- name: With `select()`description: |@@ -3939,6 +3953,13 @@ pages:filter():$ref: '@supabase/postgrest-js.PostgrestFilterBuilder.filter'+ notes: |+ filter() expects you to use the raw PostgREST syntax for the filter values.++ ```ts+ .filter('id', 'in', '(5,6,7)') // Use `()` for `in` filter+ .filter('arraycol', 'cs', '{"a","b"}') // Use `cs` for `contains()`, `{}` for array values+ ```examples:- name: With `select()`description: |