docs: Adds the edit URL for all Supabase lib docs

This commit is contained in:
Paul Copplestone committed 2021-01-16 13:33:47 +08:00
1 parent a7ca45b2b6
commit 3f28d10738
52 files changed
+198 -106

No files matched your search

+3 -2
View File
@@ -2,6 +2,7 @@
id: adj
title: ".adj()"
slug: adj
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The range to filter with.
</div>
</li>
+2 -1
View File
@@ -2,6 +2,7 @@
id: auth-onauthstatechange
title: "auth.onAuthStateChange()"
slug: auth-onauthstatechange
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -55,7 +56,7 @@ supabase.auth.onAuthStateChange((event, session) => {
<div class="method-list-item-description">
No description provided.
</div>
</li>
+1
View File
@@ -2,6 +2,7 @@
id: auth-session
title: "auth.session()"
slug: auth-session
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+5 -4
View File
@@ -2,6 +2,7 @@
id: auth-signin
title: "auth.signIn()"
slug: auth-signin
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { user, error } = await supabase.auth.signIn({
<div class="method-list-item-description">
The user login details.
</div>
<ul className="method-list-group">
@@ -77,7 +78,7 @@ The user login details.
<div class="method-list-item-description">
The user's email address.
</div>
</li>
@@ -98,7 +99,7 @@ The user's email address.
<div class="method-list-item-description">
The user's password.
</div>
</li>
@@ -119,7 +120,7 @@ The user's password.
<div class="method-list-item-description">
One of the providers supported by GoTrue.
</div>
</li>
+1
View File
@@ -2,6 +2,7 @@
id: auth-signout
title: "auth.signOut()"
slug: auth-signout
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+4 -3
View File
@@ -2,6 +2,7 @@
id: auth-signup
title: "auth.signUp()"
slug: auth-signup
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { user, error } = await supabase.auth.signUp({
<div class="method-list-item-description">
The user login details.
</div>
<ul className="method-list-group">
@@ -77,7 +78,7 @@ The user login details.
<div class="method-list-item-description">
The user's password.
</div>
</li>
@@ -98,7 +99,7 @@ The user's password.
<div class="method-list-item-description">
The user's email address.
</div>
</li>
+2 -1
View File
@@ -2,6 +2,7 @@
id: auth-update
title: "auth.update()"
slug: auth-update
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -55,7 +56,7 @@ const { user, error } = await supabase.auth.update({
<div class="method-list-item-description">
No description provided.
</div>
</li>
+1
View File
@@ -2,6 +2,7 @@
id: auth-user
title: "auth.user()"
slug: auth-user
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+3 -2
View File
@@ -2,6 +2,7 @@
id: cd
title: ".cd()"
slug: cd
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: cs
title: ".cs()"
slug: cs
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: delete
title: "Delete data: delete()"
slug: delete
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -77,7 +78,7 @@ No description provided.
<div class="method-list-item-description">
If `true`, return the deleted row(s) in the response.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: eq
title: ".eq()"
slug: eq
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+4 -3
View File
@@ -2,6 +2,7 @@
id: filter
title: ".filter()"
slug: filter
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -77,7 +78,7 @@ The column to filter on.
<div class="method-list-item-description">
The operator to filter with.
</div>
</li>
@@ -98,7 +99,7 @@ The operator to filter with.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+5 -4
View File
@@ -2,6 +2,7 @@
id: fts
title: ".fts()"
slug: fts
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -32,7 +33,7 @@ to_tsquery(`query`).
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -53,7 +54,7 @@ The column to filter on.
<div class="method-list-item-description">
The Postgres tsquery string to filter with.
</div>
</li>
@@ -74,7 +75,7 @@ The Postgres tsquery string to filter with.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -95,7 +96,7 @@ No description provided.
<div class="method-list-item-description">
The text search configuration to use.
</div>
</li>
+1
View File
@@ -2,6 +2,7 @@
id: generating-types
title: "Generating Types"
slug: generating-types
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+1
View File
@@ -2,6 +2,7 @@
id: getsubscriptions
title: "getSubscriptions()"
slug: getsubscriptions
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+3 -2
View File
@@ -2,6 +2,7 @@
id: gt
title: ".gt()"
slug: gt
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: gte
title: ".gte()"
slug: gte
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: ilike
title: ".ilike()"
slug: ilike
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The pattern to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: in
title: ".in()"
slug: in
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The values to filter with.
</div>
</li>
+1
View File
@@ -2,6 +2,7 @@
id: index
title: "Supabase Client"
slug: supabase-client
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+4 -3
View File
@@ -2,6 +2,7 @@
id: initializing
title: "Initializing"
slug: initializing
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -32,7 +33,7 @@ You can initialize a new Supabase client using the `createClient()` method.
<div class="method-list-item-description">
The unique Supabase URL which is supplied when you create a new project in your project dashboard.
</div>
</li>
@@ -53,7 +54,7 @@ The unique Supabase URL which is supplied when you create a new project in your
<div class="method-list-item-description">
The unique Supabase Key which is supplied when you create a new project in your project dashboard.
</div>
</li>
@@ -74,7 +75,7 @@ The unique Supabase Key which is supplied when you create a new project in your
<div class="method-list-item-description">
No description provided.
</div>
</li>
+6 -5
View File
@@ -2,6 +2,7 @@
id: insert
title: "Create data: insert()"
slug: insert
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The values to insert.
</div>
</li>
@@ -78,7 +79,7 @@ The values to insert.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -99,7 +100,7 @@ No description provided.
<div class="method-list-item-description">
If `true`, performs an UPSERT.
</div>
</li>
@@ -120,7 +121,7 @@ If `true`, performs an UPSERT.
<div class="method-list-item-description">
By default the new record is returned. Set this to 'minimal' if you don't need this value.
</div>
</li>
@@ -141,7 +142,7 @@ By default the new record is returned. Set this to 'minimal' if you don't need t
<div class="method-list-item-description">
By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint.
</div>
</li>
+1
View File
@@ -2,6 +2,7 @@
id: installing
title: "Installing"
slug: installing
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+3 -2
View File
@@ -2,6 +2,7 @@
id: is
title: ".is()"
slug: is
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: like
title: ".like()"
slug: like
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The pattern to filter with.
</div>
</li>
+4 -3
View File
@@ -2,6 +2,7 @@
id: limit
title: "limit()"
slug: limit
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The maximum no. of rows to limit to.
</div>
</li>
@@ -77,7 +78,7 @@ The maximum no. of rows to limit to.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -98,7 +99,7 @@ No description provided.
<div class="method-list-item-description">
The foreign table to use (for foreign columns).
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: lt
title: ".lt()"
slug: lt
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: lte
title: ".lte()"
slug: lte
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+2 -1
View File
@@ -2,6 +2,7 @@
id: match
title: ".match()"
slug: match
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
The object to filter with, with column names as keys mapped
to their filter values.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: neq
title: ".neq()"
slug: neq
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+4 -3
View File
@@ -2,6 +2,7 @@
id: not
title: ".not()"
slug: not
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -77,7 +78,7 @@ The column to filter on.
<div class="method-list-item-description">
The operator to filter with.
</div>
</li>
@@ -98,7 +99,7 @@ The operator to filter with.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: nxl
title: ".nxl()"
slug: nxl
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The range to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: nxr
title: ".nxr()"
slug: nxr
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The range to filter with.
</div>
</li>
+2 -1
View File
@@ -2,6 +2,7 @@
id: or
title: ".or()"
slug: or
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The filters to use, separated by commas.
</div>
</li>
+6 -5
View File
@@ -2,6 +2,7 @@
id: order
title: "order()"
slug: order
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to order on.
</div>
</li>
@@ -77,7 +78,7 @@ The column to order on.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -98,7 +99,7 @@ No description provided.
<div class="method-list-item-description">
If `true`, `null`s appear first.
</div>
</li>
@@ -119,7 +120,7 @@ If `true`, `null`s appear first.
<div class="method-list-item-description">
The foreign table to use (if `column` is a foreign column).
</div>
</li>
@@ -140,7 +141,7 @@ The foreign table to use (if `column` is a foreign column).
<div class="method-list-item-description">
If `true`, the result will be in ascending order.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: ov
title: ".ov()"
slug: ov
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The value to filter with.
</div>
</li>
+5 -4
View File
@@ -2,6 +2,7 @@
id: phfts
title: ".phfts()"
slug: phfts
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -32,7 +33,7 @@ phraseto_tsquery(`query`).
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -53,7 +54,7 @@ The column to filter on.
<div class="method-list-item-description">
The Postgres tsquery string to filter with.
</div>
</li>
@@ -74,7 +75,7 @@ The Postgres tsquery string to filter with.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -95,7 +96,7 @@ No description provided.
<div class="method-list-item-description">
The text search configuration to use.
</div>
</li>
+5 -4
View File
@@ -2,6 +2,7 @@
id: plfts
title: ".plfts()"
slug: plfts
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -32,7 +33,7 @@ plainto_tsquery(`query`).
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -53,7 +54,7 @@ The column to filter on.
<div class="method-list-item-description">
The Postgres tsquery string to filter with.
</div>
</li>
@@ -74,7 +75,7 @@ The Postgres tsquery string to filter with.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -95,7 +96,7 @@ No description provided.
<div class="method-list-item-description">
The text search configuration to use.
</div>
</li>
+5 -4
View File
@@ -2,6 +2,7 @@
id: range
title: "range()"
slug: range
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The starting index from which to limit the result, inclusive.
</div>
</li>
@@ -77,7 +78,7 @@ The starting index from which to limit the result, inclusive.
<div class="method-list-item-description">
The last index to which to limit the result, inclusive.
</div>
</li>
@@ -98,7 +99,7 @@ The last index to which to limit the result, inclusive.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -119,7 +120,7 @@ No description provided.
<div class="method-list-item-description">
The foreign table to use (for foreign columns).
</div>
</li>
+2 -1
View File
@@ -2,6 +2,7 @@
id: removesubscription
title: "removeSubscription()"
slug: removesubscription
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -53,7 +54,7 @@ supabase.removeSubscription(mySubscription)
<div class="method-list-item-description">
The subscription you want to remove.
</div>
</li>
+2 -1
View File
@@ -2,6 +2,7 @@
id: reset-password-email
title: "Reset Password (Email)"
slug: reset-password-email
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -53,7 +54,7 @@ const { data, error } = supabase.auth.api.resetPasswordForEmail('user@email.com'
<div class="method-list-item-description">
The email address of the user.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: rpc
title: "Stored Procedures: rpc()"
slug: rpc
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -59,7 +60,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The function name to call.
</div>
</li>
@@ -80,7 +81,7 @@ The function name to call.
<div class="method-list-item-description">
The parameters to pass to the function call.
</div>
</li>
+7 -6
View File
@@ -2,6 +2,7 @@
id: select
title: "Fetch data: select()"
slug: select
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -55,7 +56,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The columns to retrieve, separated by commas.
</div>
</li>
@@ -218,7 +219,7 @@ const { data, error } = await supabase
If you have data inside of a JSONB column, you can apply select
and query filters to the data values. Postgres offers a
[number of operators](https://www.postgresql.org/docs/9.5/functions-json.html)
[number of operators](https://www.postgresql.org/docs/current/functions-json.html)
for querying JSON data. Also see
[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details.
@@ -232,12 +233,12 @@ for querying JSON data. Also see
```js
const { data, error } = await supabase
.from('products')
.from('users')
.select(`
id,
supplier:supplier_id ( name ),
purchaser:purchaser_id ( name )
id, name,
address->street
`)
.eq('address->postcode', 90210)
```
+1
View File
@@ -2,6 +2,7 @@
id: single
title: "single()"
slug: single
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+3 -2
View File
@@ -2,6 +2,7 @@
id: sl
title: ".sl()"
slug: sl
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The range to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: sr
title: ".sr()"
slug: sr
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -57,7 +58,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -78,7 +79,7 @@ The column to filter on.
<div class="method-list-item-description">
The range to filter with.
</div>
</li>
+3 -2
View File
@@ -2,6 +2,7 @@
id: subscribe
title: "on().subscribe()"
slug: subscribe
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -58,7 +59,7 @@ const mySubscription = supabase
<div class="method-list-item-description">
The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes.
</div>
</li>
@@ -79,7 +80,7 @@ The database event which you would like to receive updates for, or you can use t
<div class="method-list-item-description">
A callback that will handle the payload that is sent whenever your database changes.
</div>
</li>
+44 -3
View File
@@ -2,6 +2,7 @@
id: update
title: "Modify data: update()"
slug: update
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -56,7 +57,7 @@ const { data, error } = await supabase
<div class="method-list-item-description">
The values to update.
</div>
</li>
@@ -77,7 +78,7 @@ The values to update.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -98,7 +99,7 @@ No description provided.
<div class="method-list-item-description">
By default the updated record is returned. Set this to 'minimal' if you don't need this value.
</div>
</li>
@@ -152,6 +153,46 @@ const { data, error } = await supabase
```
</TabItem>
</Tabs>
### Updating JSON data
Postgres 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.
<Tabs
defaultValue="js"
groupId="libraries"
values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>
<TabItem value="js">
```js
const { data, error } = await supabase
.from('users')
.update(`
address: {
street: 'Melrose Place',
postcode: 90210
}
`)
.eq('address->postcode', 90210)
```
</TabItem>
<TabItem value="py">
```py
# Not yet implemented
```
</TabItem>
</Tabs>
+1
View File
@@ -2,6 +2,7 @@
id: using-filters
title: "Using Filters"
slug: using-filters
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+1
View File
@@ -2,6 +2,7 @@
id: using-modifiers
title: "Using Modifiers"
slug: using-modifiers
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
+5 -4
View File
@@ -2,6 +2,7 @@
id: wfts
title: ".wfts()"
slug: wfts
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
@@ -32,7 +33,7 @@ websearch_to_tsquery(`query`).
<div class="method-list-item-description">
The column to filter on.
</div>
</li>
@@ -53,7 +54,7 @@ The column to filter on.
<div class="method-list-item-description">
The Postgres tsquery string to filter with.
</div>
</li>
@@ -74,7 +75,7 @@ The Postgres tsquery string to filter with.
<div class="method-list-item-description">
No description provided.
</div>
<ul className="method-list-group">
@@ -95,7 +96,7 @@ No description provided.
<div class="method-list-item-description">
The text search configuration to use.
</div>
</li>