By default the new record is returned. Set this to 'minimal' if you don't need this value.
-
+
@@ -141,7 +142,7 @@ By default the new record is returned. Set this to 'minimal' if you don't need t
By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint.
-
+
diff --git a/web/docs/client/installing.mdx b/web/docs/client/installing.mdx
index 95da647fb0f..ceac31b4cbe 100644
--- a/web/docs/client/installing.mdx
+++ b/web/docs/client/installing.mdx
@@ -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';
diff --git a/web/docs/client/is.mdx b/web/docs/client/is.mdx
index deb1d2dc242..6c0160d1891 100644
--- a/web/docs/client/is.mdx
+++ b/web/docs/client/is.mdx
@@ -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
The maximum no. of rows to limit to.
-
+
@@ -77,7 +78,7 @@ The maximum no. of rows to limit to.
No description provided.
-
+
@@ -98,7 +99,7 @@ No description provided.
The foreign table to use (for foreign columns).
-
+
diff --git a/web/docs/client/lt.mdx b/web/docs/client/lt.mdx
index 9127a3f27cb..1701b79698a 100644
--- a/web/docs/client/lt.mdx
+++ b/web/docs/client/lt.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The value to filter with.
-
+
diff --git a/web/docs/client/lte.mdx b/web/docs/client/lte.mdx
index d5a442bb230..d998d7a999d 100644
--- a/web/docs/client/lte.mdx
+++ b/web/docs/client/lte.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The value to filter with.
-
+
diff --git a/web/docs/client/match.mdx b/web/docs/client/match.mdx
index 2147f438200..05c232ea63e 100644
--- a/web/docs/client/match.mdx
+++ b/web/docs/client/match.mdx
@@ -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.
-
+
diff --git a/web/docs/client/neq.mdx b/web/docs/client/neq.mdx
index f812cad6050..3818838ebdd 100644
--- a/web/docs/client/neq.mdx
+++ b/web/docs/client/neq.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The value to filter with.
-
+
diff --git a/web/docs/client/not.mdx b/web/docs/client/not.mdx
index 6e870053c0b..a07edf1d392 100644
--- a/web/docs/client/not.mdx
+++ b/web/docs/client/not.mdx
@@ -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
The column to filter on.
-
+
@@ -77,7 +78,7 @@ The column to filter on.
The operator to filter with.
-
+
@@ -98,7 +99,7 @@ The operator to filter with.
The value to filter with.
-
+
diff --git a/web/docs/client/nxl.mdx b/web/docs/client/nxl.mdx
index f9a9d3d8978..1787708f89f 100644
--- a/web/docs/client/nxl.mdx
+++ b/web/docs/client/nxl.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The range to filter with.
-
+
diff --git a/web/docs/client/nxr.mdx b/web/docs/client/nxr.mdx
index 8699b550d10..6c57328e948 100644
--- a/web/docs/client/nxr.mdx
+++ b/web/docs/client/nxr.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The range to filter with.
-
+
diff --git a/web/docs/client/or.mdx b/web/docs/client/or.mdx
index 69480986970..8a9e3de7388 100644
--- a/web/docs/client/or.mdx
+++ b/web/docs/client/or.mdx
@@ -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
The filters to use, separated by commas.
-
+
diff --git a/web/docs/client/order.mdx b/web/docs/client/order.mdx
index b15d1bf4a24..bf22db754f2 100644
--- a/web/docs/client/order.mdx
+++ b/web/docs/client/order.mdx
@@ -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
The column to order on.
-
+
@@ -77,7 +78,7 @@ The column to order on.
No description provided.
-
+
@@ -98,7 +99,7 @@ No description provided.
If `true`, `null`s appear first.
-
+
@@ -119,7 +120,7 @@ If `true`, `null`s appear first.
The foreign table to use (if `column` is a foreign column).
-
+
@@ -140,7 +141,7 @@ The foreign table to use (if `column` is a foreign column).
If `true`, the result will be in ascending order.
-
+
diff --git a/web/docs/client/ov.mdx b/web/docs/client/ov.mdx
index f407cc305a6..d948e295b7c 100644
--- a/web/docs/client/ov.mdx
+++ b/web/docs/client/ov.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The value to filter with.
-
+
diff --git a/web/docs/client/phfts.mdx b/web/docs/client/phfts.mdx
index ba60cf50121..7030f4e076c 100644
--- a/web/docs/client/phfts.mdx
+++ b/web/docs/client/phfts.mdx
@@ -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`).
The column to filter on.
-
+
@@ -53,7 +54,7 @@ The column to filter on.
The Postgres tsquery string to filter with.
-
+
@@ -74,7 +75,7 @@ The Postgres tsquery string to filter with.
No description provided.
-
+
@@ -95,7 +96,7 @@ No description provided.
The text search configuration to use.
-
+
diff --git a/web/docs/client/plfts.mdx b/web/docs/client/plfts.mdx
index 86344a9c43f..a87e241600a 100644
--- a/web/docs/client/plfts.mdx
+++ b/web/docs/client/plfts.mdx
@@ -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`).
The column to filter on.
-
+
@@ -53,7 +54,7 @@ The column to filter on.
The Postgres tsquery string to filter with.
-
+
@@ -74,7 +75,7 @@ The Postgres tsquery string to filter with.
No description provided.
-
+
@@ -95,7 +96,7 @@ No description provided.
The text search configuration to use.
-
+
diff --git a/web/docs/client/range.mdx b/web/docs/client/range.mdx
index 47c8b1d28cd..b26261daa15 100644
--- a/web/docs/client/range.mdx
+++ b/web/docs/client/range.mdx
@@ -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
The starting index from which to limit the result, inclusive.
-
+
@@ -77,7 +78,7 @@ The starting index from which to limit the result, inclusive.
The last index to which to limit the result, inclusive.
-
+
@@ -98,7 +99,7 @@ The last index to which to limit the result, inclusive.
No description provided.
-
+
@@ -119,7 +120,7 @@ No description provided.
The foreign table to use (for foreign columns).
-
+
diff --git a/web/docs/client/removesubscription.mdx b/web/docs/client/removesubscription.mdx
index 688689d27b9..6055b7d4f09 100644
--- a/web/docs/client/removesubscription.mdx
+++ b/web/docs/client/removesubscription.mdx
@@ -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)
The subscription you want to remove.
-
+
diff --git a/web/docs/client/reset-password-email.mdx b/web/docs/client/reset-password-email.mdx
index 9524b1668f4..80cad31d8c7 100644
--- a/web/docs/client/reset-password-email.mdx
+++ b/web/docs/client/reset-password-email.mdx
@@ -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'
The email address of the user.
-
+
diff --git a/web/docs/client/rpc.mdx b/web/docs/client/rpc.mdx
index e4fe5fabe89..3d11af499ca 100644
--- a/web/docs/client/rpc.mdx
+++ b/web/docs/client/rpc.mdx
@@ -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
The function name to call.
-
+
@@ -80,7 +81,7 @@ The function name to call.
The parameters to pass to the function call.
-
+
diff --git a/web/docs/client/select.mdx b/web/docs/client/select.mdx
index c0a31ead2c3..fbe84d8484d 100644
--- a/web/docs/client/select.mdx
+++ b/web/docs/client/select.mdx
@@ -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
The columns to retrieve, separated by commas.
-
+
@@ -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)
```
diff --git a/web/docs/client/single.mdx b/web/docs/client/single.mdx
index a253168ad95..9d9495ea03d 100644
--- a/web/docs/client/single.mdx
+++ b/web/docs/client/single.mdx
@@ -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';
diff --git a/web/docs/client/sl.mdx b/web/docs/client/sl.mdx
index 6894d2f5fae..509118b4ca6 100644
--- a/web/docs/client/sl.mdx
+++ b/web/docs/client/sl.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The range to filter with.
-
+
diff --git a/web/docs/client/sr.mdx b/web/docs/client/sr.mdx
index 7b43f568059..c011fe77a94 100644
--- a/web/docs/client/sr.mdx
+++ b/web/docs/client/sr.mdx
@@ -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
The column to filter on.
-
+
@@ -78,7 +79,7 @@ The column to filter on.
The range to filter with.
-
+
diff --git a/web/docs/client/subscribe.mdx b/web/docs/client/subscribe.mdx
index 02307917cdc..85b3dd2a99e 100644
--- a/web/docs/client/subscribe.mdx
+++ b/web/docs/client/subscribe.mdx
@@ -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
The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes.
-
+
@@ -79,7 +80,7 @@ The database event which you would like to receive updates for, or you can use t
A callback that will handle the payload that is sent whenever your database changes.
-
+
diff --git a/web/docs/client/update.mdx b/web/docs/client/update.mdx
index e71446f5c17..e4abbbd59ba 100644
--- a/web/docs/client/update.mdx
+++ b/web/docs/client/update.mdx
@@ -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
The values to update.
-
+
@@ -77,7 +78,7 @@ The values to update.
No description provided.
-
+
@@ -98,7 +99,7 @@ No description provided.
By default the updated record is returned. Set this to 'minimal' if you don't need this value.
-
+
@@ -152,6 +153,46 @@ const { data, error } = await supabase
```
+
+
+
+
+### 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.
+
+
+
+
+
+
+```js
+const { data, error } = await supabase
+ .from('users')
+ .update(`
+ address: {
+ street: 'Melrose Place',
+ postcode: 90210
+ }
+ `)
+ .eq('address->postcode', 90210)
+```
+
+
+
+
+
+```py
+# Not yet implemented
+```
+
+
\ No newline at end of file
diff --git a/web/docs/client/using-filters.mdx b/web/docs/client/using-filters.mdx
index 78494041e5f..0c5a9fed11f 100644
--- a/web/docs/client/using-filters.mdx
+++ b/web/docs/client/using-filters.mdx
@@ -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';
diff --git a/web/docs/client/using-modifiers.mdx b/web/docs/client/using-modifiers.mdx
index be03d7183ea..b3fd5411da8 100644
--- a/web/docs/client/using-modifiers.mdx
+++ b/web/docs/client/using-modifiers.mdx
@@ -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';
diff --git a/web/docs/client/wfts.mdx b/web/docs/client/wfts.mdx
index 066373eba19..795d35414b4 100644
--- a/web/docs/client/wfts.mdx
+++ b/web/docs/client/wfts.mdx
@@ -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`).
The column to filter on.
-
+
@@ -53,7 +54,7 @@ The column to filter on.
The Postgres tsquery string to filter with.
-
+
@@ -74,7 +75,7 @@ The Postgres tsquery string to filter with.
No description provided.
-
+