The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Laying out a new way of doing filters so that they appear on the sidebar
Paul Copplestone1838c352e1a3
diff --git a/web/docs/common/filters/match.mdx b/web/docs/common/filters/match.mdxnew file mode 100644index 00000000000..3f1c3705ef9--- /dev/null+++ b/web/docs/common/filters/match.mdx@@ -0,0 +1,25 @@+import Collapsable from '../../../src/components/Collapsable'++<!-- prettier-ignore -->+```js {3}+supabase+ .from(tableName)+ .match(filterObject)+```++Finds rows that exactly match the specified filterObject. Equivilent of `filter('columnName', 'eq', criteria)`.++<Collapsable title="Toggle Example">++<!-- prettier-ignore -->+```js+supabase+ .from('countries')+ .match({ 'continent': 'Asia' })+```++</Collapsable>+++#### `filterObject: object`+An object of `{ 'columnName': 'criteria' }`\ No newline at end of filediff --git a/web/docs/library/get.mdx b/web/docs/library/get.mdxindex 099a2be09ac..a9dc87a558c 100644--- a/web/docs/library/get.mdx+++ b/web/docs/library/get.mdx@@ -6,6 +6,7 @@ title: 'Reading'import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'import DummyData from '../common/DummyData.mdx'+import Match from '../common/filters/match.mdx'import CommonResponses from '../common/CommonResponses.mdx'import CommonFilters from '../common/CommonFilters.mdx'import Collapsable from '../../src/components/Collapsable'@@ -273,6 +274,14 @@ Returns the first row of the table as an object and **not** as an array.----+### `filter()`++++### `match()`++<Match />+## Filtering<CommonFilters verb="get" />