The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: adds edit links to all pages
Paul Copplestone153903a79e84
diff --git a/web/docs/client/delete.mdx b/web/docs/client/delete.mdxindex c967b5d0bda..5d01cb569ec 100644--- a/web/docs/client/delete.mdx+++ b/web/docs/client/delete.mdx@@ -83,6 +83,27 @@ If `true`, return the deleted row(s) in the response.</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ count+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.++ </div>++</li>+</ul></li>diff --git a/web/docs/client/insert.mdx b/web/docs/client/insert.mdxindex 21c66a08980..76e2dc9a9b8 100644--- a/web/docs/client/insert.mdx+++ b/web/docs/client/insert.mdx@@ -147,6 +147,27 @@ By specifying the `on_conflict` query parameter, you can make UPSERT work on a c</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ count+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.++ </div>++</li>+</ul></li>diff --git a/web/docs/client/rpc.mdx b/web/docs/client/rpc.mdxindex 3d11af499ca..b2892813d4e 100644--- a/web/docs/client/rpc.mdx+++ b/web/docs/client/rpc.mdx@@ -225,6 +225,39 @@ const { data, error } = await supabase```+</TabItem>++</Tabs>++### With count option++You can specify a count option to get the row count along with your data.+Allowed values for count option are `null`, `exact`, `planned` and `estimated`.+++<Tabs+ defaultValue="js"+ groupId="libraries"+ values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>++<TabItem value="js">++```js+const { data, error, count } = await postgrest+ .from('cities')+ .rpc('hello_world', { count: 'exact' })+}+```+++</TabItem>+<TabItem value="py">++```py+# Not yet implemented+```++</TabItem></Tabs>\ No newline at end of filediff --git a/web/docs/client/select.mdx b/web/docs/client/select.mdxindex fbe84d8484d..87e9632e763 100644--- a/web/docs/client/select.mdx+++ b/web/docs/client/select.mdx@@ -61,6 +61,73 @@ The columns to retrieve, separated by commas.</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ __namedParameters+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>object</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.++ </div>++<ul className="method-list-group">+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ head+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>boolean</code>+ </span>+ </h4>+ <div class="method-list-item-description">++When set to true, select will void data.++ </div>++</li>+++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ count+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ </span>+ </h4>+ <div class="method-list-item-description">++Count algorithm to use to count rows in a table.++ </div>++</li>++</ul>++</li>+</ul>@@ -211,6 +278,38 @@ const { data, error } = await supabase```+</TabItem>++</Tabs>++### Querying with count option++You can get the number of rows by using the count option.+Allowed values for count option are `null`, `exact`, `planned` and `estimated`.+++<Tabs+ defaultValue="js"+ groupId="libraries"+ values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>++<TabItem value="js">++```js+const { data, error, count } = await postgrest+ .from('cities')+ .select('name', { count: 'exact' })+```+++</TabItem>+<TabItem value="py">++```py+# Not yet implemented+```++</TabItem></Tabs>diff --git a/web/docs/client/update.mdx b/web/docs/client/update.mdxindex e4abbbd59ba..44b1bf55645 100644--- a/web/docs/client/update.mdx+++ b/web/docs/client/update.mdx@@ -104,6 +104,27 @@ By default the updated record is returned. Set this to 'minimal' if you don't ne</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ count+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.++ </div>++</li>+</ul></li>@@ -162,7 +183,7 @@ const { data, error } = await supabasePostgres offers a[number of operators](https://www.postgresql.org/docs/current/functions-json.html)for working with JSON data. Right now it is only possible to update an entire JSON document,-but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys.+but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys.<Tabsdiff --git a/web/docs/gotrue/client/api-getuser.mdx b/web/docs/gotrue/client/api-getuser.mdxindex b8b15072fdd..e4b4686656e 100644--- a/web/docs/gotrue/client/api-getuser.mdx+++ b/web/docs/gotrue/client/api-getuser.mdx@@ -2,6 +2,7 @@id: api-getusertitle: "api.getUser"slug: api-getuser+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Gets the user details.<div class="method-list-item-description">A valid, logged-in JWT.-+</div></li>diff --git a/web/docs/gotrue/client/api-inviteuserbyemail.mdx b/web/docs/gotrue/client/api-inviteuserbyemail.mdxindex 062b32fb50c..d57a5f20976 100644--- a/web/docs/gotrue/client/api-inviteuserbyemail.mdx+++ b/web/docs/gotrue/client/api-inviteuserbyemail.mdx@@ -2,6 +2,7 @@id: api-inviteuserbyemailtitle: "api.inviteUserByEmail"slug: api-inviteuserbyemail+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Sends an invite link to an email address.<div class="method-list-item-description">The email address of the user.-+</div></li>diff --git a/web/docs/gotrue/client/api-refreshaccesstoken.mdx b/web/docs/gotrue/client/api-refreshaccesstoken.mdxindex 4d65f1019ea..d1985a6672c 100644--- a/web/docs/gotrue/client/api-refreshaccesstoken.mdx+++ b/web/docs/gotrue/client/api-refreshaccesstoken.mdx@@ -2,6 +2,7 @@id: api-refreshaccesstokentitle: "api.refreshAccessToken"slug: api-refreshaccesstoken+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Generates a new JWT.<div class="method-list-item-description">A valid refresh token that was returned on login.-+</div></li>diff --git a/web/docs/gotrue/client/api-resetpasswordforemail.mdx b/web/docs/gotrue/client/api-resetpasswordforemail.mdxindex 747d19bc742..88152f334e6 100644--- a/web/docs/gotrue/client/api-resetpasswordforemail.mdx+++ b/web/docs/gotrue/client/api-resetpasswordforemail.mdx@@ -2,6 +2,7 @@id: api-resetpasswordforemailtitle: "api.resetPasswordForEmail"slug: api-resetpasswordforemail+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Sends a reset request to an email address.<div class="method-list-item-description">The email address of the user.-+</div></li>diff --git a/web/docs/gotrue/client/api-sendmagiclinkemail.mdx b/web/docs/gotrue/client/api-sendmagiclinkemail.mdxindex 0f94d94044b..a831d58a465 100644--- a/web/docs/gotrue/client/api-sendmagiclinkemail.mdx+++ b/web/docs/gotrue/client/api-sendmagiclinkemail.mdx@@ -2,6 +2,7 @@id: api-sendmagiclinkemailtitle: "api.sendMagicLinkEmail"slug: api-sendmagiclinkemail+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Sends a magic login link to an email address.<div class="method-list-item-description">The email address of the user.-+</div></li>diff --git a/web/docs/gotrue/client/api-signinwithemail.mdx b/web/docs/gotrue/client/api-signinwithemail.mdxindex 2fd3e8f9521..17e665d7930 100644--- a/web/docs/gotrue/client/api-signinwithemail.mdx+++ b/web/docs/gotrue/client/api-signinwithemail.mdx@@ -2,6 +2,7 @@id: api-signinwithemailtitle: "api.signInWithEmail"slug: api-signinwithemail+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Logs in an existing user using their email address.<div class="method-list-item-description">The email address of the user.-+</div></li>@@ -52,7 +53,7 @@ The email address of the user.<div class="method-list-item-description">The password of the user.-+</div></li>diff --git a/web/docs/gotrue/client/api-signout.mdx b/web/docs/gotrue/client/api-signout.mdxindex 5665674b433..dd56d6eb13e 100644--- a/web/docs/gotrue/client/api-signout.mdx+++ b/web/docs/gotrue/client/api-signout.mdx@@ -2,6 +2,7 @@id: api-signouttitle: "api.signOut"slug: api-signout+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Removes a logged-in session.<div class="method-list-item-description">A valid, logged-in JWT.-+</div></li>diff --git a/web/docs/gotrue/client/api-signupwithemail.mdx b/web/docs/gotrue/client/api-signupwithemail.mdxindex 4e1c17b3f5f..0244f30b025 100644--- a/web/docs/gotrue/client/api-signupwithemail.mdx+++ b/web/docs/gotrue/client/api-signupwithemail.mdx@@ -2,6 +2,7 @@id: api-signupwithemailtitle: "api.signUpWithEmail"slug: api-signupwithemail+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Creates a new user using their email address.<div class="method-list-item-description">The email address of the user.-+</div></li>@@ -52,7 +53,7 @@ The email address of the user.<div class="method-list-item-description">The password of the user.-+</div></li>diff --git a/web/docs/gotrue/client/api-updateuser.mdx b/web/docs/gotrue/client/api-updateuser.mdxindex 77c77588221..76dfc69590c 100644--- a/web/docs/gotrue/client/api-updateuser.mdx+++ b/web/docs/gotrue/client/api-updateuser.mdx@@ -2,6 +2,7 @@id: api-updateusertitle: "api.updateUser"slug: api-updateuser+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Updates the user data.<div class="method-list-item-description">A valid, logged-in JWT.-+</div></li>@@ -52,7 +53,7 @@ A valid, logged-in JWT.<div class="method-list-item-description">The data you want to update.-+</div></li>diff --git a/web/docs/gotrue/client/index.mdx b/web/docs/gotrue/client/index.mdxindex f3e55390a8f..3bf784ce636 100644--- a/web/docs/gotrue/client/index.mdx+++ b/web/docs/gotrue/client/index.mdx@@ -2,6 +2,7 @@id: indextitle: "GoTrue Client"slug: gotrue-client+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/gotrue/client/initializing.mdx b/web/docs/gotrue/client/initializing.mdxindex cd07ce3bbc5..ca47e85fa2a 100644--- a/web/docs/gotrue/client/initializing.mdx+++ b/web/docs/gotrue/client/initializing.mdx@@ -2,6 +2,7 @@id: initializingtitle: "Initializing"slug: initializing+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -63,7 +64,7 @@ const auth = new GoTrueClient({<div class="method-list-item-description">No description provided.-+</div><ul className="method-list-group">@@ -84,7 +85,28 @@ No description provided.<div class="method-list-item-description">Set to "true" if you want to automatically refresh the token before expiring.++ </div>+</li>+++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ cookieOptions+ </span>+ <span className="method-list-item-label-badge false">+ optional+ </span>+ <span className="method-list-item-validation">+ <code>CookieOptions</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.+</div></li>@@ -105,7 +127,7 @@ Set to "true" if you want to automatically refresh the token before expiring.<div class="method-list-item-description">Set to "true" if you want to automatically detects OAuth grants in the URL and signs in the user.-+</div></li>@@ -126,7 +148,7 @@ Set to "true" if you want to automatically detects OAuth grants in the URL and s<div class="method-list-item-description">Any additional headers to send to the GoTrue server.-+</div></li>@@ -147,7 +169,7 @@ Any additional headers to send to the GoTrue server.<div class="method-list-item-description">No description provided.-+</div></li>@@ -168,7 +190,7 @@ No description provided.<div class="method-list-item-description">Set to "true" if you want to automatically save the user session into local storage.-+</div></li>@@ -189,7 +211,7 @@ Set to "true" if you want to automatically save the user session into local stor<div class="method-list-item-description">The URL of the GoTrue server.-+</div></li>diff --git a/web/docs/gotrue/client/installing.mdx b/web/docs/gotrue/client/installing.mdxindex c5898aca716..78ec85b00da 100644--- a/web/docs/gotrue/client/installing.mdx+++ b/web/docs/gotrue/client/installing.mdx@@ -2,6 +2,7 @@id: installingtitle: "Installing"slug: installing+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/gotrue/client/onauthstatechange.mdx b/web/docs/gotrue/client/onauthstatechange.mdxindex 2fb33e4a689..091f1c4855d 100644--- a/web/docs/gotrue/client/onauthstatechange.mdx+++ b/web/docs/gotrue/client/onauthstatechange.mdx@@ -2,6 +2,7 @@id: onauthstatechangetitle: "onAuthStateChange"slug: onauthstatechange+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/gotrue/client/session.mdx b/web/docs/gotrue/client/session.mdxindex 98863249c75..66930bee8c1 100644--- a/web/docs/gotrue/client/session.mdx+++ b/web/docs/gotrue/client/session.mdx@@ -2,6 +2,7 @@id: sessiontitle: "session"slug: session+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/gotrue/client/signin.mdx b/web/docs/gotrue/client/signin.mdxindex c787fb73681..cc8fbae067d 100644--- a/web/docs/gotrue/client/signin.mdx+++ b/web/docs/gotrue/client/signin.mdx@@ -2,6 +2,7 @@id: signintitle: "signIn"slug: signin+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -62,7 +63,7 @@ const { user, error } = await auth.signIn({<div class="method-list-item-description">The user login details.-+</div><ul className="method-list-group">@@ -83,7 +84,7 @@ The user login details.<div class="method-list-item-description">The user's email address.-+</div></li>@@ -104,7 +105,7 @@ The user's email address.<div class="method-list-item-description">The user's password.-+</div></li>@@ -125,7 +126,7 @@ The user's password.<div class="method-list-item-description">One of the providers supported by GoTrue.-+</div></li>diff --git a/web/docs/gotrue/client/signout.mdx b/web/docs/gotrue/client/signout.mdxindex b8c39caa62d..7fdef71a851 100644--- a/web/docs/gotrue/client/signout.mdx+++ b/web/docs/gotrue/client/signout.mdx@@ -2,6 +2,7 @@id: signouttitle: "signOut"slug: signout+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/gotrue/client/signup.mdx b/web/docs/gotrue/client/signup.mdxindex c6cd9b6fdb0..f09523a1f02 100644--- a/web/docs/gotrue/client/signup.mdx+++ b/web/docs/gotrue/client/signup.mdx@@ -2,6 +2,7 @@id: signuptitle: "signUp"slug: signup+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Creates a new user.<div class="method-list-item-description">The user login details.-+</div><ul className="method-list-group">@@ -52,7 +53,7 @@ The user login details.<div class="method-list-item-description">The user's password.-+</div></li>@@ -73,7 +74,7 @@ The user's password.<div class="method-list-item-description">The user's email address.-+</div></li>diff --git a/web/docs/gotrue/client/update.mdx b/web/docs/gotrue/client/update.mdxindex 2768d8f8fbd..628ff5a9d82 100644--- a/web/docs/gotrue/client/update.mdx+++ b/web/docs/gotrue/client/update.mdx@@ -2,6 +2,7 @@id: updatetitle: "update"slug: update+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';@@ -55,7 +56,7 @@ const { user, error } = await auth.update({<div class="method-list-item-description">No description provided.-+</div></li>diff --git a/web/docs/gotrue/client/user.mdx b/web/docs/gotrue/client/user.mdxindex 2cb353feadd..f8f9f7ad275 100644--- a/web/docs/gotrue/client/user.mdx+++ b/web/docs/gotrue/client/user.mdx@@ -2,6 +2,7 @@id: usertitle: "user"slug: user+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/gotrue.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/realtime/client/connect.mdx b/web/docs/realtime/client/connect.mdxindex 0f21d229b24..8ea96073f97 100644--- a/web/docs/realtime/client/connect.mdx+++ b/web/docs/realtime/client/connect.mdx@@ -2,6 +2,7 @@id: connecttitle: "connect"slug: connect+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/realtime.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/realtime/client/disconnect.mdx b/web/docs/realtime/client/disconnect.mdxindex 37d8113bbd1..3fdb5414595 100644--- a/web/docs/realtime/client/disconnect.mdx+++ b/web/docs/realtime/client/disconnect.mdx@@ -2,6 +2,7 @@id: disconnecttitle: "disconnect"slug: disconnect+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/realtime.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Disconnects the socket.<div class="method-list-item-description">A numeric status code to send on disconnect.-+</div></li>@@ -52,7 +53,7 @@ A numeric status code to send on disconnect.<div class="method-list-item-description">A custom reason for the disconnect.-+</div></li>diff --git a/web/docs/realtime/client/index.mdx b/web/docs/realtime/client/index.mdxindex c4f032297d1..7656404fc41 100644--- a/web/docs/realtime/client/index.mdx+++ b/web/docs/realtime/client/index.mdx@@ -2,6 +2,7 @@id: indextitle: "Realtime Client"slug: realtime-client+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/realtime.yml---import Tabs from '@theme/Tabs';diff --git a/web/docs/realtime/client/initializing.mdx b/web/docs/realtime/client/initializing.mdxindex 8d82655a683..eb69ae1a052 100644--- a/web/docs/realtime/client/initializing.mdx+++ b/web/docs/realtime/client/initializing.mdx@@ -2,6 +2,7 @@id: initializingtitle: "Initializing"slug: initializing+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/realtime.yml---import Tabs from '@theme/Tabs';@@ -31,7 +32,7 @@ Initializes the Socket<div class="method-list-item-description">The string WebSocket endpoint, ie, "ws://example.com/socket", "wss://example.com", "/socket" (inherited host & protocol)-+</div></li>@@ -52,7 +53,7 @@ The string WebSocket endpoint, ie, "ws://example.com/socket", "wss://example.com<div class="method-list-item-description">No description provided.-+</div></li>diff --git a/web/docs/realtime/client/installing.mdx b/web/docs/realtime/client/installing.mdxindex d4317f002dc..5b1bfbe0d87 100644--- a/web/docs/realtime/client/installing.mdx+++ b/web/docs/realtime/client/installing.mdx@@ -2,6 +2,7 @@id: installingtitle: "Installing"slug: installing+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/realtime.yml---import Tabs from '@theme/Tabs';