The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: code cleanup and spelling
Paul Copplestone290c6b6a8dcc
diff --git a/web/docs/about.md b/web/docs/about.mdindex e27c5c57f04..69dc09cfa67 100755--- a/web/docs/about.md+++ b/web/docs/about.md@@ -26,7 +26,7 @@ Most notably, we use Postgres rather than a NoSQL store. This was a deliberate c## How it works.-At its core, is a suite of open source tools, stiched together to build a seamless developer experience:+At its core, is a suite of open source tools, stitched together to build a seamless developer experience:diff --git a/web/docs/client/generating-types.mdx b/web/docs/client/generating-types.mdxindex 021dfb8df6e..e7a673c3a72 100644--- a/web/docs/client/generating-types.mdx+++ b/web/docs/client/generating-types.mdx@@ -42,7 +42,7 @@ response.body // Response body will be of type Array<any>.### Generate database types from Swagger OpenAPI specification-Supabase generates a Swagger speficiation file for your database which can be used to generate your data types for usage with TypeScript.+Supabase generates a Swagger specification file for your database which can be used to generate your data types for usage with TypeScript.The Swagger specification for your Supabase project can be accessed as follows:diff --git a/web/docs/common/CommonFilters.js b/web/docs/common/CommonFilters.jsdeleted file mode 100644index 2c37a0ae07c..00000000000--- a/web/docs/common/CommonFilters.js+++ /dev/null@@ -1,58 +0,0 @@-import React from 'react'-import Filter from './filters/_filter.mdx'-import Not from './filters/_not.mdx'-import Match from './filters/_match.mdx'-import Eq from './filters/_eq.mdx'-import Neq from './filters/_neq.mdx'-import Gt from './filters/_gt.mdx'-import Lt from './filters/_lt.mdx'-import Gte from './filters/_gte.mdx'-import Lte from './filters/_lte.mdx'-import Like from './filters/_like.mdx'-import Ilike from './filters/_ilike.mdx'-import Is from './filters/_is.mdx'-import In from './filters/_in.mdx'-import Cs from './filters/_cs.mdx'-import Cd from './filters/_cd.mdx'-import Ova from './filters/_ova.mdx'-import Ovr from './filters/_ovr.mdx'-import Sl from './filters/_sl.mdx'-import Sr from './filters/_sr.mdx'-import Nxl from './filters/_nxl.mdx'-import Nxr from './filters/_nxr.mdx'-import Adj from './filters/_adj.mdx'-import Or from './filters/_or.mdx'---const filters = {- filter: <Filter />,- not: <Not />,- match: <Match />,- or: <Or />,- eq: <Eq />,- neq: <Neq />,- gt: <Gt />,- lt: <Lt />,- gte: <Gte />,- lte: <Lte />,- like: <Like />,- ilike: <Ilike />,- is: <Is />,- in: <In />,- cs: <Cs />,- cd: <Cd />,- ova: <Ova />,- ovr: <Ovr />,- sl: <Sl />,- sr: <Sr />,- nxl: <Nxl />,- nxr: <Nxr />,- adj: <Adj />-}--function CommonFilters(props) {- var filter = props.filter.toLowerCase()- return filters[filter]-}--export default CommonFiltersdiff --git a/web/docs/common/_CommonResponses.mdx b/web/docs/common/_CommonResponses.mdxdeleted file mode 100644index 7c66c6f8a26..00000000000--- a/web/docs/common/_CommonResponses.mdx+++ /dev/null@@ -1,19 +0,0 @@--#### 400 Bad request-An invalid syntax or configuration was sent.--#### 401 Unauthorized-Invalid credentials were provided.--#### 404 Not found-Requested resource cannot be found.--#### 406 Not acceptable-The response provided by the server does not match-the list of acceptable values stated in the request's headers.--#### 409 Violating foreign key constraint-Raised when you are trying to insert or update into a table with a foreign key which doesn't exist on the target foreign relationship.--#### 500 Internal Server Error-The server was unable to encounter the situation it encountered.diff --git a/web/docs/common/_FromFunction.mdx b/web/docs/common/_FromFunction.mdxdeleted file mode 100644index 084e74619b1..00000000000--- a/web/docs/common/_FromFunction.mdx+++ /dev/null@@ -1,38 +0,0 @@-import Collapsable from '../../src/components/Collapsable'--<!-- prettier-ignore -->-```js {2}-supabase- .from(tableName)-```-<div style={{display: props.verb == 'subscribe' ? 'block' : 'none'}}>--#### `tableName: string`-Name of the database table to be listened to. Using the wildcard `"*"` will lead to all tables to be listened to.-</div>--<div style={{display: props.verb == 'get' ? 'block' : 'none'}}>--#### `tableName: string`-Name of the database table that will be read from.-</div>--<div style={{display: props.verb == 'post' ? 'block' : 'none'}}>--#### `tableName: string`-Name of the database table where data will be saved.-</div>--<div style={{display: props.verb == 'patch' ? 'block' : 'none'}}>--#### `tableName: string`-Name of the database table where data will be updated.-</div>--<div style={{display: props.verb == 'delete' ? 'block' : 'none'}}>--#### `tableName: string`-Name of the database table where data will be deleted.-</div>-----\ No newline at end of filediff --git a/web/docs/common/filters/_adj.mdx b/web/docs/common/filters/_adj.mdxdeleted file mode 100644index 7124f074b59..00000000000--- a/web/docs/common/filters/_adj.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .adj(columnName, filterRange)-```--Finds all rows whose range value on the stated columnName is adjacent to the specified filterRange. Equivalent of `filter(columnName, 'adj', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterRange: array`-Array to compare to. Returns an error if length of array provided is not equal to 2.-----\ No newline at end of filediff --git a/web/docs/common/filters/_cd.mdx b/web/docs/common/filters/_cd.mdxdeleted file mode 100644index 1cb445adc3f..00000000000--- a/web/docs/common/filters/_cd.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .cd(columnName, filterObject)-```--Finds all rows whose json, array, or range value on the stated columnName is contained by the specific filterObject. Equivalent of `filter(columName, 'cd', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterObject: { array | object }`-Value to compare to.-----\ No newline at end of filediff --git a/web/docs/common/filters/_cs.mdx b/web/docs/common/filters/_cs.mdxdeleted file mode 100644index ffff4ac6f87..00000000000--- a/web/docs/common/filters/_cs.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .cs(columnName, filterObject)-```--Finds all rows whose json, array, or range value on the stated columnName contains the items specified in the filterObject. Equivalent of `filter(columName, 'cs', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterObject: { array | object }`-Value to compare to.-----\ No newline at end of filediff --git a/web/docs/common/filters/_eq.mdx b/web/docs/common/filters/_eq.mdxdeleted file mode 100644index 944b7105edb..00000000000--- a/web/docs/common/filters/_eq.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .eq(columnName, filterValue)-```--Finds all rows whose value on the stated columnName exactly matches the specified filterValue. Equivalent of `filter(columnName, 'eq', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterValue: { string | integer | boolean }`-Value to match.-----\ No newline at end of filediff --git a/web/docs/common/filters/_filter.mdx b/web/docs/common/filters/_filter.mdxdeleted file mode 100644index 95df65ef5f4..00000000000--- a/web/docs/common/filters/_filter.mdx+++ /dev/null@@ -1,22 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .filter(columnName, operator, criteria)-```--This allows you to apply various filters on your query. Filters can also be chained together.--#### `columnName: string`-Name of the database column.--#### `operator: string`-Name of filter operator to be utilised.--#### `criteria: { object | array | string | integer | boolean | null }`-Value to compare to. Exact data type of criteria would depend on the operator used.-----\ No newline at end of filediff --git a/web/docs/common/filters/_gt.mdx b/web/docs/common/filters/_gt.mdxdeleted file mode 100644index bb43aa8bc2e..00000000000--- a/web/docs/common/filters/_gt.mdx+++ /dev/null@@ -1,18 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .gt(columnName, filterValue)-```-Finds all rows whose value on the stated columnName is greater than the specified filterValue. Eqiuvalent of `filter(columnName, 'gt', criteria)`.--#### `columnName: string`-Name of database column.--#### `filterValue: { string | integer | boolean }`-Value to compare to.-----\ No newline at end of filediff --git a/web/docs/common/filters/_gte.mdx b/web/docs/common/filters/_gte.mdxdeleted file mode 100644index 275dba59bb8..00000000000--- a/web/docs/common/filters/_gte.mdx+++ /dev/null@@ -1,18 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .gte(columnName, filterValue)-```-Finds all rows whose value on the stated columnName is greater than or equal to the specified filterValue. Eqiuvalent of `filter(columnName, 'gte', criteria)`.--#### `columnName: string`-Name of database column.--#### `filterValue: { string | integer | boolean }`-Value to compare to.-----\ No newline at end of filediff --git a/web/docs/common/filters/_ilike.mdx b/web/docs/common/filters/_ilike.mdxdeleted file mode 100644index 1d2c1ab8c69..00000000000--- a/web/docs/common/filters/_ilike.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .ilike(columnName, stringPattern)-```--A case-sensitive version of `like()`. Equivalent of `filter(columnName, 'ilike', stringPattern)`.--#### `columnName: string`-Name of database column.--#### `stringPattern: string`-String pattern to compare to. A comprehensive guide on how to form proper patterns can be found [here](https://www.postgresql.org/docs/current/functions-matching.html).-----\ No newline at end of filediff --git a/web/docs/common/filters/_in.mdx b/web/docs/common/filters/_in.mdxdeleted file mode 100644index 0bcb2385ab6..00000000000--- a/web/docs/common/filters/_in.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .in(columnName, filterArray)-```--Finds all rows whose value on the stated columnName is found on the specified filterArray. Equivalent of `filter(columnName, 'in', criteria)`.--#### `columnName: string`-Name of database column.--#### `filterArray: array`-Array of values to find a match. Data type of values is dependent on the columnName specified.-----\ No newline at end of filediff --git a/web/docs/common/filters/_is.mdx b/web/docs/common/filters/_is.mdxdeleted file mode 100644index 318ece96eec..00000000000--- a/web/docs/common/filters/_is.mdx+++ /dev/null@@ -1,20 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .is(columnName, filterValue)-```--A check for exact equality (**null**, **true**, **false**), finds all rows whose value on the state columnName exactly match the specified filterValue.-Equivalent of `filter(columnName, 'is', filterValue)`.--#### `columnName: string`-Name of database column.--#### `filterValue: { null | boolean }`-Value to match.-----\ No newline at end of filediff --git a/web/docs/common/filters/_like.mdx b/web/docs/common/filters/_like.mdxdeleted file mode 100644index b820607910e..00000000000--- a/web/docs/common/filters/_like.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .like(columnName, stringPattern)-```--Finds all rows whose value in the stated columnName matches the supplied pattern. Equivalent of `filter(columnName, 'like', stringPattern)`.--#### `columnName: string`-Name of database column.--#### `stringPattern: string`-String pattern to compare to. A comprehensive guide on how to form proper patterns can be found [here](https://www.postgresql.org/docs/current/functions-matching.html).-----\ No newline at end of filediff --git a/web/docs/common/filters/_lt.mdx b/web/docs/common/filters/_lt.mdxdeleted file mode 100644index 811cd03d57c..00000000000--- a/web/docs/common/filters/_lt.mdx+++ /dev/null@@ -1,18 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .lt(columnName, filterValue)-```-Finds all rows whose value on the stated columnName is less than the specified filterValue. Eqiuvalent of `filter(columnName, 'lt', criteria)`.--#### `columnName: string`-Name of database column.--#### `filterValue: { string | integer | boolean }`-Value to compare to.-----\ No newline at end of filediff --git a/web/docs/common/filters/_lte.mdx b/web/docs/common/filters/_lte.mdxdeleted file mode 100644index 84fc9f146d0..00000000000--- a/web/docs/common/filters/_lte.mdx+++ /dev/null@@ -1,18 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .lte(columnName, filterValue)-```-Finds all rows whose value on the stated columnName is less than or equal to the specified filterValue. Eqiuvalent of `filter(columnName, 'lte', criteria)`.--#### `columnName: string`-Name of database column.--#### `filterValue: { string | integer | boolean }`-Value to compare to.-----\ No newline at end of filediff --git a/web/docs/common/filters/_match.mdx b/web/docs/common/filters/_match.mdxdeleted file mode 100644index 05ec07296df..00000000000--- a/web/docs/common/filters/_match.mdx+++ /dev/null@@ -1,16 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .match(filterObject)-```--Finds rows that exactly match the specified filterObject. Equivalent of multiple `filter('columnName', 'eq', criteria)`.--#### `filterObject: object`-An object of `{ 'columnName': 'criteria' }`-----\ No newline at end of filediff --git a/web/docs/common/filters/_neq.mdx b/web/docs/common/filters/_neq.mdxdeleted file mode 100644index 1b84136e5c8..00000000000--- a/web/docs/common/filters/_neq.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .neq(columnName, filterValue)-```--Finds all rows whose value on the stated columnName does not match the specified filterValue. Equivalent of `filter(columnName, 'neq', criteria)`.--#### `columnName: string`-Name of database column.--#### `filterValue: { string | integer | boolean }`-Value to **not** match.-----\ No newline at end of filediff --git a/web/docs/common/filters/_not.mdx b/web/docs/common/filters/_not.mdxdeleted file mode 100644index d09a2576728..00000000000--- a/web/docs/common/filters/_not.mdx+++ /dev/null@@ -1,22 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .not(columnName, operator, criteria)-```--Reverse of `.filter()`. Returns rows that do not meet the criteria specified using the columnName and operator provided.--#### `columnName: string`-Name of the database column.--#### `operator: string`-Name of filter operator to be utilised.--#### `criteria: { object | array | string | integer | boolean | null }`-Value to compare to. Exact data type of criteria would depend on the operator used.-----\ No newline at end of filediff --git a/web/docs/common/filters/_nxl.mdx b/web/docs/common/filters/_nxl.mdxdeleted file mode 100644index e0dfc9a46ed..00000000000--- a/web/docs/common/filters/_nxl.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .nxl(columnName, filterRange)-```--Finds all rows whose range value on the stated columnName does not extend to the left of the specified filterRange. Equivalent of `filter(columnName, 'nxl', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterRange: array`-Array to compare to. Returns an error if length of array provided is not equal to 2.-----\ No newline at end of filediff --git a/web/docs/common/filters/_nxr.mdx b/web/docs/common/filters/_nxr.mdxdeleted file mode 100644index 44febd36ea0..00000000000--- a/web/docs/common/filters/_nxr.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .nxr(columnName, filterRange)-```--Finds all rows whose range value on the stated columnName does not extend to the right of the specified filterRange. Equivalent of `filter(columnName, 'nxr', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterRange: array`-Array to compare to. Returns an error if length of array provided is not equal to 2.-----\ No newline at end of filediff --git a/web/docs/common/filters/_or.mdx b/web/docs/common/filters/_or.mdxdeleted file mode 100644index f1863bb4d35..00000000000--- a/web/docs/common/filters/_or.mdx+++ /dev/null@@ -1,16 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .or(criteria)-```--To write append an `OR` filter, which should be made up of several other filters.--#### `criteria: { string }`-Filters to apply.-----\ No newline at end of filediff --git a/web/docs/common/filters/_ova.mdx b/web/docs/common/filters/_ova.mdxdeleted file mode 100644index 68ae6862b35..00000000000--- a/web/docs/common/filters/_ova.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .ova(columnName, filterArray)-```--Finds all rows whose array value on the stated columnName overlaps with the specified filterArray. Equivalent of `filter(columnName, 'ova', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterArray: array`-Value to compare to.-----\ No newline at end of filediff --git a/web/docs/common/filters/_ovr.mdx b/web/docs/common/filters/_ovr.mdxdeleted file mode 100644index 011ad4a83a8..00000000000--- a/web/docs/common/filters/_ovr.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .ovr(columnName, filterRange)-```--Finds all rows whose range value on the stated columnName overlaps with the specified filterRange. Equivalent of `filter(columnName, 'ovr', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterRange: array`-Array to compare to. Returns an error if length of array provided is not equal to 2.-----\ No newline at end of filediff --git a/web/docs/common/filters/_sl.mdx b/web/docs/common/filters/_sl.mdxdeleted file mode 100644index 7fb07dbad23..00000000000--- a/web/docs/common/filters/_sl.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .sl(columnName, filterRange)-```--Finds all rows whose range value on the stated columnName is strictly on the left hand side of the specified filterRange. Equivalent of `filter(columnName, 'sl', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterRange: array`-Array to compare to. Returns an error if length of array provided is not equal to 2.-----\ No newline at end of filediff --git a/web/docs/common/filters/_sr.mdx b/web/docs/common/filters/_sr.mdxdeleted file mode 100644index 5babd652a32..00000000000--- a/web/docs/common/filters/_sr.mdx+++ /dev/null@@ -1,19 +0,0 @@-import Collapsable from '../../../src/components/Collapsable'--#### General form-<!-- prettier-ignore -->-```js {3}-supabase- .from(tableName)- .sr(columnName, filterRange)-```--Finds all rows whose range value on the stated columnName is strictly on the right hand side of the specified filterRange. Equivalent of `filter(columnName, 'sr', criteria)`.--#### `columnName: string`-Name of the database column.--#### `filterRange: array`-Array to compare to. Returns an error if length of array provided is not equal to 2.-----\ No newline at end of filediff --git a/web/docs/handbook/contributing.mdx b/web/docs/handbook/contributing.mdxindex 2c3308fe512..f84312bc73c 100644--- a/web/docs/handbook/contributing.mdx+++ b/web/docs/handbook/contributing.mdx@@ -9,7 +9,7 @@ description: Want to help?Want to contribute? Why not jump into our github and:- submit an issue-- report a performance issue or a part of the documenation that you find confusing+- report a performance issue or a part of the documentation that you find confusing- create a pull request- try one of our products and give feedback- translate this websitediff --git a/web/spec/supabase.yml b/web/spec/supabase.ymlindex 91524dfc194..4d966108bbc 100644--- a/web/spec/supabase.yml+++ b/web/spec/supabase.yml@@ -180,7 +180,7 @@ pages:### Generate database types from Swagger OpenAPI specification- Supabase generates a Swagger speficiation file for your database which can be used to generate your data types for usage with TypeScript.+ Supabase generates a Swagger specification file for your database which can be used to generate your data types for usage with TypeScript.The Swagger specification for your Supabase project can be accessed as follows: