The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Updating Documentation for .update() & .delete() - plus minor corrections
Angelico72a7b3c1c0d9
diff --git a/web/docs/common/DummyData.mdx b/web/docs/common/DummyData.mdxindex cf6a1c7c7ce..47f35bb66ff 100644--- a/web/docs/common/DummyData.mdx+++ b/web/docs/common/DummyData.mdx@@ -23,14 +23,14 @@ We will be fictional "world" database in all of our examples.<div className=""><strong>Cities</strong>-| name | country_id | miscellaneous |-| -------------- | :--------: | -------------------- |-| Rio de Janeiro | 76 | { isCapital: false } |-| Beijing | 156 | { isCapital: true } |-| Paris | 250 | { isCapital: true } |-| Auckland | 554 | { isCapital: false } |-| Lagos | 556 | { isCapital: false } |-| San Francisco | 840 | { isCapital: false } |+| name | country_id |+| -------------- | :--------: |+| Rio de Janeiro | 76 |+| Beijing | 156 |+| Paris | 250 |+| Auckland | 554 |+| Lagos | 556 |+| San Francisco | 840 |</div></div>diff --git a/web/docs/library/delete.mdx b/web/docs/library/delete.mdxindex c0701cac0a4..5f1c6b4d89e 100644--- a/web/docs/library/delete.mdx+++ b/web/docs/library/delete.mdx@@ -10,31 +10,40 @@ import CommonResponses from '../common/CommonResponses.mdx'import CommonFilters from '../common/CommonFilters'import FromFunction from '../common/FromFunction.mdx'import CustomCodeBlock from '../../src/components/CustomCodeBlock'-import { deleteRecordJs,- deleteFilterJs,- deleteMatchJs,- deleteEqJs,- deleteGtJs,- deleteLtJs,- deleteGteJs,- deleteLteJs,- deleteLikeJs,- deleteIlikeJs,- deleteIsJs,- deleteInJs,- deleteNeqJs- } from './examples/delete'-+import {+ deleteRecordJs,+ deleteFilterJs,+ deleteNotJs,+ deleteMatchJs,+ deleteEqJs,+ deleteNeqJs,+ deleteGtJs,+ deleteLtJs,+ deleteGteJs,+ deleteLteJs,+ deleteLikeJs,+ deleteIlikeJs,+ deleteIsJs,+ deleteInJs,+ deleteCsJs,+ deleteCdJs,+ deleteOvaJs,+ deleteOvrJs,+ deleteSlJs,+ deleteSrJs,+ deleteNxlJs,+ deleteNxrJs,+ deleteAdjJs,+} from './examples/delete'<DummyData />-### Delete records<CustomCodeBlockheader="Deletes city."js={deleteRecordJs}- jsHighlight="{7-11}"+ jsHighlight="{7-10}"response={`{"body": null,"status": 204,@@ -46,28 +55,30 @@ import { deleteRecordJs,## Reference### `from()`-<FromFunction verb='delete' />++<FromFunction verb="delete" />### `delete()`+```js {3}supabase.from(tableName).delete(options?)```--#### `options: object?`++#### `options: object?````js/**- * @param {boolean} [bulk=false]- * Protects against bulk updates. Set to true if you intend to perform a bulk change.+ * @param {boolean} [bulk=false]+ * Protects against bulk deletes. Set to true if you intend to perform a bulk change.*/const options = {- bulk: false+ bulk: false,}```-----+---## Filtering@@ -85,9 +96,27 @@ const options = {}`}/>-<br/>+<br />++<CommonFilters filter="filter" />++### `not()`++<CustomCodeBlock+ header="Shows how to use not( ) with delete( )"+ js={deleteNotJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>-<CommonFilters filter='filter'/>+<br />++<CommonFilters filter="not" />### `match()`@@ -103,9 +132,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='match'/>+<CommonFilters filter="match" />### `eq()`@@ -121,9 +150,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='eq'/>+<CommonFilters filter="eq" />### `neq()`@@ -139,9 +168,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='neq'/>+<CommonFilters filter="neq" />### `gt()`@@ -157,9 +186,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='gt'/>+<CommonFilters filter="gt" />### `lt()`@@ -175,9 +204,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='lt'/>+<CommonFilters filter="lt" />### `gte()`@@ -193,9 +222,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='gte'/>+<CommonFilters filter="gte" />### `lte()`@@ -211,9 +240,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='lte'/>+<CommonFilters filter="lte" />### `like()`@@ -229,9 +258,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='like'/>+<CommonFilters filter="like" />### `ilike()`@@ -247,9 +276,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='ilike'/>+<CommonFilters filter="ilike" />### `is()`@@ -265,9 +294,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='is'/>+<CommonFilters filter="is" />### `in()`@@ -283,13 +312,176 @@ const options = {}`}/>-<br/>+<br />++<CommonFilters filter="in" />++### `cs()`-<CommonFilters filter='in'/>+<CustomCodeBlock+ header="Shows how to use cs( ) with delete( )"+ js={deleteCsJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="cs" />++### `cd()`++<CustomCodeBlock+ header="Shows how to use cd( ) with delete( )"+ js={deleteCdJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="cd" />++### `ova()`++<CustomCodeBlock+ header="Shows how to use ova( ) with delete( )"+ js={deleteOvaJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="ova" />++### `ovr()`++<CustomCodeBlock+ header="Shows how to use ovr( ) with delete( )"+ js={deleteOvrJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="ovr" />++### `sl()`++<CustomCodeBlock+ header="Shows how to use sl( ) with delete( )"+ js={deleteSlJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="sl" />++### `sr()`++<CustomCodeBlock+ header="Shows how to use sr( ) with delete( )"+ js={deleteSrJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="sr" />++### `nxl()`++<CustomCodeBlock+ header="Shows how to use nxl( ) with delete( )"+ js={deleteNxlJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="nxl" />++### `nxr()`++<CustomCodeBlock+ header="Shows how to use nxr( ) with delete( )"+ js={deleteNxrJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="nxr" />++### `adj()`++<CustomCodeBlock+ header="Shows how to use adj( ) with delete( )"+ js={deleteAdjJs}+ jsHighlight="{9}"+ response={`{+ "body": null,+ "status": 204,+ "statusCode": 204,+ "statusText": "No Content"+}`}+/>++<br />++<CommonFilters filter="adj" />## Responses#### 200 OK+Successful request-<CommonResponses />\ No newline at end of file+<CommonResponses />diff --git a/web/docs/library/examples/delete.js b/web/docs/library/examples/delete.jsindex 03de449b8c8..9e35a1830f9 100644--- a/web/docs/library/examples/delete.js+++ b/web/docs/library/examples/delete.js@@ -1,12 +1,11 @@+import {importJs, errorJs} from './common'+/*** delete.mdx examples*/export const deleteRecordJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', '1a2b-3c4d-5e6f-7g8h')-+${importJs}const deleteCity = async () => {try {let values = await supabase@@ -15,17 +14,11 @@ const deleteCity = async () => {.delete()return values- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteFilterJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -33,17 +26,23 @@ const deleteCity = async () => {.filter({'name', 'eq', 'Paris'}).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`--export const deleteMatchJs = `-import { createClient } from '@supabase/supabase-js'+ ${errorJs}+`.trim()-const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')+export const deleteNotJs = `+${importJs}+const getCities = async () => {+ try {+ let cities = await supabase+ .from('cities')+ .not('name', 'eq', 'Paris')+ .delete()+ return cities+ ${errorJs}+`.trim()+export const deleteMatchJs = `+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -51,17 +50,11 @@ const deleteCity = async () => {.match({name: 'Beijing', country_id: 156}).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteEqJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -69,17 +62,23 @@ const deleteCity = async () => {.eq('name', 'San Francisco').delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`--export const deleteGtJs = `-import { createClient } from '@supabase/supabase-js'+ ${errorJs}+`.trim()-const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')+export const deleteNeqJs = `+${importJs}+const deleteCity = async () => {+ try {+ let cities = await supabase+ .from('cities')+ .neq('name', 'Lagos')+ .delete()+ return cities+ ${errorJs}+`.trim()+export const deleteGtJs = `+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -87,17 +86,11 @@ const deleteCity = async () => {.gt('country_id', 250).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteLtJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -105,17 +98,11 @@ const deleteCity = async () => {.lt('country_id', 250).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteGteJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -123,17 +110,11 @@ const deleteCity = async () => {.gte('country_id', 250).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteLteJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -141,17 +122,11 @@ const deleteCity = async () => {.lte('country_id', 250).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteLikeJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -159,17 +134,11 @@ const deleteCity = async () => {.like('name', '%la%').delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteIlikeJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -177,17 +146,11 @@ const deleteCity = async () => {.ilike('name', '%la%').delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteIsJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -195,17 +158,11 @@ const deleteCity = async () => {.is('name', null).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()export const deleteInJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const deleteCity = async () => {try {let cities = await supabase@@ -213,26 +170,113 @@ const deleteCity = async () => {.in('name', ['Rio de Janeiro', 'San Francisco']).delete()return cities- } catch (error) {- console.log('Error: ', error)- }-}-`+ ${errorJs}+`.trim()-export const deleteNeqJs = `-import { createClient } from '@supabase/supabase-js'+export const deleteCsJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .cs('main_exports', ['oil'])+ delete()+ return countries+ ${errorJs}+`.trim()-const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')+export const deleteCdJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .cd('main_exports', ['cars', 'food', 'machine'])+ .delete()+ return countries+ ${errorJs}+`.trim()-const deleteCity = async () => {+export const deleteOvaJs = `+${importJs}+const deleteCountry = async () => {try {- let cities = await supabase- .from('cities')- .neq('name', 'Lagos')+ let countries = await supabase+ .from('countries')+ .ova('main_exports', ['computers', 'minerals']).delete()- return cities- } catch (error) {- console.log('Error: ', error)- }-}+ return countries+ ${errorJs}+`.trim()++export const deleteOvrJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .ovr('population_range_millions', [150, 250])+ .delete()+ return countries+ ${errorJs}+`.trim()++export const deleteSlJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .sl('population_range_millions', [150, 250])+ .delete()+ return countries+ ${errorJs}+`.trim()++export const deleteSrJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .sr('population_range_millions', [150, 250])+ .delete()+ return countries+ ${errorJs}+`.trim()++export const deleteNxlJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .nxl('population_range_millions', [150, 250])+ .delete()+ return countries+ ${errorJs}+`.trim()++export const deleteNxrJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .nxr('population_range_millions', [150, 250])+ .delete()+ return countries+ ${errorJs}+`.trim()++export const deleteAdjJs = `+${importJs}+const deleteCountry = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .adj('population_range_millions', [70, 185])+ .delete()+ return countries+ ${errorJs}`.trim()diff --git a/web/docs/library/examples/get.js b/web/docs/library/examples/get.jsindex e385c36cf7f..b4ffc4141a9 100644--- a/web/docs/library/examples/get.js+++ b/web/docs/library/examples/get.js@@ -305,7 +305,7 @@ const getCountries = async () => {let countries = await supabase.from('countries').sl('population_range_millions', [150, 250])- .select('name', 'id', 'main_exports')+ .select('name', 'id', 'population_range_millions')return countries${errorJs}`.trim()@@ -317,7 +317,7 @@ const getCountries = async () => {let countries = await supabase.from('countries').sr('population_range_millions', [150, 250])- .select('name', 'id', 'main_exports')+ .select('name', 'id', 'population_range_millions')return countries${errorJs}`.trim()@@ -329,7 +329,7 @@ const getCountries = async () => {let countries = await supabase.from('countries').nxl('population_range_millions', [150, 250])- .select('name', 'id', 'main_exports')+ .select('name', 'id', 'population_range_millions')return countries${errorJs}`.trim()@@ -341,7 +341,7 @@ const getCountries = async () => {let countries = await supabase.from('countries').nxr('population_range_millions', [150, 250])- .select('name', 'id', 'main_exports')+ .select('name', 'id', 'population_range_millions')return countries${errorJs}`.trim()@@ -353,7 +353,7 @@ const getCountries = async () => {let countries = await supabase.from('countries').adj('population_range_millions', [70, 185])- .select('name', 'id', 'main_exports')+ .select('name', 'id', 'population_range_millions')return countries${errorJs}`.trim()diff --git a/web/docs/library/examples/patch.js b/web/docs/library/examples/patch.jsindex 761cda74346..0abb78e9174 100644--- a/web/docs/library/examples/patch.js+++ b/web/docs/library/examples/patch.js@@ -1,12 +1,11 @@+import {importJs, errorJs} from './common'+/*** patch.mdx examples*/export const patchRecordJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', '1a2b-3c4d-5e6f-7g8h')-+${importJs}const updateCityName = async () => {try {let updates = await supabase@@ -15,17 +14,11 @@ const updateCityName = async () => {.match({ name: 'Auckland' })return updates- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchFilterJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -33,17 +26,23 @@ const updateCityName = async () => {.filter('name', 'eq', 'Paris').update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()-export const patchMatchJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')+export const patchNotJs = `+${importJs}+const getCities = async () => {+ try {+ let cities = await supabase+ .from('cities')+ .not('name', 'eq', 'Paris')+ .update({ name: 'Mordor' })+ return cities+ ${errorJs}+`.trim()+export const patchMatchJs = `+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -51,17 +50,11 @@ const updateCityName = async () => {.match({name: 'Beijing', country_id: 156}).update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchEqJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -69,17 +62,23 @@ const updateCityName = async () => {.eq('name', 'San Francisco').update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()-export const patchGtJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')+export const patchNeqJs = `+${importJs}+const updateCityName = async () => {+ try {+ let cities = await supabase+ .from('cities')+ .neq('name', 'Lagos')+ .update({ name: 'Mordor' })+ return cities+ ${errorJs}+`.trim()+export const patchGtJs = `+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -87,17 +86,11 @@ const updateCityName = async () => {.gt('country_id', 250).update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchLtJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -105,17 +98,11 @@ const updateCityName = async () => {.lt('country_id', 250).update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchGteJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -123,17 +110,11 @@ const updateCityName = async () => {.gte('country_id', 250).update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchLteJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -141,17 +122,11 @@ const updateCityName = async () => {.lte('country_id', 250).update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchLikeJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -166,10 +141,7 @@ const updateCityName = async () => {`.trim()export const patchIlikeJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -177,17 +149,11 @@ const updateCityName = async () => {.ilike('name', '%la%').update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchIsJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -195,17 +161,11 @@ const updateCityName = async () => {.is('name', null).update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()export const patchInJs = `-import { createClient } from '@supabase/supabase-js'--const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')-+${importJs}const updateCityName = async () => {try {let cities = await supabase@@ -213,26 +173,113 @@ const updateCityName = async () => {.in('name', ['Rio de Janeiro', 'San Francisco']).update({ name: 'Mordor' })return cities- } catch (error) {- console.log('Error: ', error)- }-}+ ${errorJs}`.trim()-export const patchNeqJs = `-import { createClient } from '@supabase/supabase-js'+export const patchCsJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .cs('main_exports', ['oil'])+ update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()-const supabase = createClient('https://world.supabase.co', 'public-key-bOYapLADERfE')+export const patchCdJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .cd('main_exports', ['cars', 'food', 'machine'])+ .update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()-const updateCityName = async () => {+export const patchOvaJs = `+${importJs}+const updateCountryName = async () => {try {- let cities = await supabase- .from('cities')- .neq('name', 'Lagos')+ let countries = await supabase+ .from('countries')+ .ova('main_exports', ['computers', 'minerals']).update({ name: 'Mordor' })- return cities- } catch (error) {- console.log('Error: ', error)- }-}-`.trim()\ No newline at end of file+ return countries+ ${errorJs}+`.trim()++export const patchOvrJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .ovr('population_range_millions', [150, 250])+ .update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()++export const patchSlJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .sl('population_range_millions', [150, 250])+ .update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()++export const patchSrJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .sr('population_range_millions', [150, 250])+ .update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()++export const patchNxlJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .nxl('population_range_millions', [150, 250])+ .update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()++export const patchNxrJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .nxr('population_range_millions', [150, 250])+ .update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()++export const patchAdjJs = `+${importJs}+const updateCountryName = async () => {+ try {+ let countries = await supabase+ .from('countries')+ .adj('population_range_millions', [70, 185])+ .update({ name: 'Mordor' })+ return countries+ ${errorJs}+`.trim()diff --git a/web/docs/library/get.mdx b/web/docs/library/get.mdxindex 05533144754..7be2f428ed3 100644--- a/web/docs/library/get.mdx+++ b/web/docs/library/get.mdx@@ -10,37 +10,37 @@ import Collapsable from '../../src/components/Collapsable'import FromFunction from '../common/FromFunction.mdx'import DummyData from '../common/DummyData.mdx'import CustomCodeBlock from '../../src/components/CustomCodeBlock'-import { getSimpleJs,- getColumnsJs,- getForeignJs,- getForeignMultipleJs,- getOrderJs,- getRangeJs,- getSingleJs,- getFilterJs,- getNotJs,- getMatchJs,- getEqJs,- getNeqJs,- getGtJs,- getLtJs,- getGteJs,- getLteJs,- getLikeJs,- getIlikeJs,- getIsJs,- getInJs,- getCsJs,- getCdJs,- getOvaJs,- getOvrJs,- getSlJs,- getSrJs,- getNxlJs,- getNxrJs,- getAdjJs- } from './examples/get'-+import {+ getSimpleJs,+ getColumnsJs,+ getForeignJs,+ getForeignMultipleJs,+ getOrderJs,+ getRangeJs,+ getSingleJs,+ getFilterJs,+ getNotJs,+ getMatchJs,+ getEqJs,+ getNeqJs,+ getGtJs,+ getLtJs,+ getGteJs,+ getLteJs,+ getLikeJs,+ getIlikeJs,+ getIsJs,+ getInJs,+ getCsJs,+ getCdJs,+ getOvaJs,+ getOvrJs,+ getSlJs,+ getSrJs,+ getNxlJs,+ getNxrJs,+ getAdjJs,+} from './examples/get'<DummyData />@@ -65,8 +65,6 @@ import { getSimpleJs,}`}/>--### Getting specific columns<CustomCodeBlock@@ -88,7 +86,6 @@ import { getSimpleJs,}`}/>-### Query foreign tables<CustomCodeBlock@@ -142,11 +139,10 @@ import { getSimpleJs,### Query the same foreign table multiple times-Sometimes you will need to query the same foreign table twice. In this case, you can use the name of the joined column to identify which join you intend to use.-For convenience, you can also give an alias for each column. For example, if we had a shop of products, and we wanted to get+Sometimes you will need to query the same foreign table twice. In this case, you can use the name of the joined column to identify which join you intend to use.+For convenience, you can also give an alias for each column. For example, if we had a shop of products, and we wanted to getthe supplier and the purchaser at the same time (both in the `users`) table:-<CustomCodeBlockheader="Shows how to reference a foreign table when it is referenced twice"js={getForeignMultipleJs}@@ -170,12 +166,11 @@ the supplier and the purchaser at the same time (both in the `users`) table:}`}/>--## Reference### `from()`-<FromFunction verb='get' />++<FromFunction verb="get" />### `select()`@@ -189,9 +184,10 @@ supabaseIf not used, all columns in the table will be returned.#### `columnQuery: string`+A comma separated list of columns. For example `select('id, name')`-If a foreign key constraint exists between this table+If a foreign key constraint exists between this tableand another, you can also query the columns of the related table. For example `select('name, cities {name}')`<Collapsable title="Show detailed example">@@ -211,7 +207,7 @@ supabase</Collapsable>-----+---### `order()`@@ -234,7 +230,7 @@ supabase}`}/>-<br/>+<br /><!-- prettier-ignore -->```js {3}@@ -246,15 +242,18 @@ supabaseOrders your data before fetching.#### `columnName: string`+Name of chosen column to base the order on.#### `sortAscending: boolean? | Default is false`+Specifies whether the order will be ascending or descending.#### `nullsFirst: boolean? | Default is false`+Specifies whether null values will be displayed first.-----+---### `range()`@@ -275,7 +274,7 @@ Specifies whether null values will be displayed first.}`}/>-<br/>+<br /><!-- prettier-ignore -->```js {3}@@ -287,12 +286,14 @@ supabasePaginates your request.#### `fromIndex: integer`+Index or position of the start of the specified range.#### `toIndex: integer?`+Index or position of the end of the specified range. If not stated, all remaining rows after the starting index will be returned.-----+---### `single()`@@ -310,7 +311,7 @@ Index or position of the end of the specified range. If not stated, all remainin}`}/>-<br/>+<br /><!-- prettier-ignore -->```js {3}@@ -319,10 +320,10 @@ supabase.single()```-Sets the header which signifies to PostgREST that the response must either be a single object+Sets the header which signifies to PostgREST that the response must either be a single objectwith `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.-----+---## Filtering@@ -342,9 +343,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='filter'/>+<CommonFilters filter="filter" />### `not()`@@ -366,9 +367,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='not'/>+<CommonFilters filter="not" />### `match()`@@ -386,9 +387,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='match'/>+<CommonFilters filter="match" />### `eq()`@@ -406,9 +407,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='eq'/>+<CommonFilters filter="eq" />### `neq()`@@ -431,9 +432,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='neq'/>+<CommonFilters filter="neq" />### `gt()`@@ -453,9 +454,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='gt'/>+<CommonFilters filter="gt" />### `lt()`@@ -474,9 +475,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='lt'/>+<CommonFilters filter="lt" />### `gte()`@@ -497,9 +498,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='gte'/>+<CommonFilters filter="gte" />### `lte()`@@ -519,9 +520,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='lte'/>+<CommonFilters filter="lte" />### `like()`@@ -539,9 +540,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='like'/>+<CommonFilters filter="like" />### `ilike()`@@ -560,9 +561,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='ilike'/>+<CommonFilters filter="ilike" />### `is()`@@ -579,9 +580,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='is'/>+<CommonFilters filter="is" />### `in()`@@ -600,9 +601,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='in'/>+<CommonFilters filter="in" />### `cs()`@@ -612,8 +613,8 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "Nigeria", "id": 556, "main_exports": [ "oil", "beans" ] },- { "name": "United States", "id": 840, "main_exports": [ "oil", "cars", "food" ] },+ { "name": "Nigeria", "id": 556, "main_exports": ["oil", "beans"] },+ { "name": "United States", "id": 840, "main_exports": ["oil", "cars", "food"] },],"status": 200,"statusCode": 200,@@ -621,9 +622,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='cs'/>+<CommonFilters filter="cs" />### `cd()`@@ -633,8 +634,8 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "France", "id": 250, "main_exports": [ "cars", "machines" ] },- { "name": "New Zealand", "id": 554, "main_exports": [ "food", "machines" ] },+ { "name": "France", "id": 250, "main_exports": ["cars", "machines"] },+ { "name": "New Zealand", "id": 554, "main_exports": ["food", "machines"] },],"status": 200,"statusCode": 200,@@ -642,9 +643,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='cd'/>+<CommonFilters filter="cd" />### `ova()`@@ -654,8 +655,8 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "Brazil", "id": 76, "main_exports": [ "beans", "minerals" ] },- { "name": "China", "id": 156, "main_exports": [ "computers", "phones" ] },+ { "name": "Brazil", "id": 76, "main_exports": ["beans", "minerals"] },+ { "name": "China", "id": 156, "main_exports": ["computers", "phones"] },],"status": 200,"statusCode": 200,@@ -663,9 +664,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='ova'/>+<CommonFilters filter="ova" />### `ovr()`@@ -675,8 +676,8 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "Brazil", "id": 76, "population_range_millions": [ 205, 215 ] },- { "name": "Nigeria", "id": 556, "population_range_millions": [ 185, 195 ] },+ { "name": "Brazil", "id": 76, "population_range_millions": [205, 215] },+ { "name": "Nigeria", "id": 556, "population_range_millions": [185, 195] },],"status": 200,"statusCode": 200,@@ -684,9 +685,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='ovr'/>+<CommonFilters filter="ovr" />### `sl()`@@ -696,8 +697,8 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "France", "id": 250, "population_range_millions": [ 60, 70 ] },- { "name": "New Zealand", "id": 554, "population_range_millions": [ 4, 6 ] },+ { "name": "France", "id": 250, "population_range_millions": [60, 70] },+ { "name": "New Zealand", "id": 554, "population_range_millions": [4, 6] },],"status": 200,"statusCode": 200,@@ -705,9 +706,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='sl'/>+<CommonFilters filter="sl" />### `sr()`@@ -717,8 +718,8 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "China", "id": 156, "population_range_millions": [ 1380, 1390 ] },- { "name": "United States", "id": 840, "population_range_millions": [ 320, 330 ] },+ { "name": "China", "id": 156, "population_range_millions": [1380, 1390] },+ { "name": "United States", "id": 840, "population_range_millions": [320, 330] },],"status": 200,"statusCode": 200,@@ -726,9 +727,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='sr'/>+<CommonFilters filter="sr" />### `nxl()`@@ -738,10 +739,10 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "Brazil", "id": 76, "population_range_millions": [ 205, 215 ] },- { "name": "China", "id": 156, "population_range_millions": [ 1380, 1390 ] },- { "name": "Nigeria", "id": 556, "population_range_millions": [ 185, 195 ] },- { "name": "United States", "id": 840, "population_range_millions": [ 320, 330 ] },+ { "name": "Brazil", "id": 76, "population_range_millions": [205, 215] },+ { "name": "China", "id": 156, "population_range_millions": [1380, 1390] },+ { "name": "Nigeria", "id": 556, "population_range_millions": [185, 195] },+ { "name": "United States", "id": 840, "population_range_millions": [320, 330] },],"status": 200,"statusCode": 200,@@ -749,9 +750,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='nxl'/>+<CommonFilters filter="nxl" />### `nxr()`@@ -761,10 +762,10 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "Brazil", "id": 76, "population_range_millions": [ 205, 215 ] },- { "name": "France", "id": 250, "population_range_millions": [ 60, 70 ] },- { "name": "New Zealand", "id": 554, "population_range_millions": [ 4, 6 ] },- { "name": "Nigeria", "id": 556, "population_range_millions": [ 185, 195 ] },+ { "name": "Brazil", "id": 76, "population_range_millions": [205, 215] },+ { "name": "France", "id": 250, "population_range_millions": [60, 70] },+ { "name": "New Zealand", "id": 554, "population_range_millions": [4, 6] },+ { "name": "Nigeria", "id": 556, "population_range_millions": [185, 195] },],"status": 200,"statusCode": 200,@@ -772,9 +773,9 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='nxr'/>+<CommonFilters filter="nxr" />### `adj()`@@ -784,8 +785,8 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.jsHighlight="{9}"response={`{"body": [- { "name": "France", "id": 250, "population_range_millions": [ 60, 70 ] },- { "name": "Nigeria", "id": 556, "population_range_millions": [ 185, 195 ] },+ { "name": "France", "id": 250, "population_range_millions": [60, 70] },+ { "name": "Nigeria", "id": 556, "population_range_millions": [185, 195] },],"status": 200,"statusCode": 200,@@ -793,13 +794,14 @@ with `200 OK`. Otherwise, it will return an error with `406 Not Acceptable`.}`}/>-<br/>+<br />-<CommonFilters filter='adj'/>+<CommonFilters filter="adj" />## Responses#### 200 OK+Successful request<CommonResponses />\ No newline at end of filediff --git a/web/docs/library/patch.mdx b/web/docs/library/patch.mdxindex f76d5af9b55..86b31df6a3c 100644--- a/web/docs/library/patch.mdx+++ b/web/docs/library/patch.mdx@@ -4,27 +4,37 @@ title: 'Updating'description: 'How to update records in your database with Supabase'----import DummyData from '../common/DummyData.mdx'import Collapsable from '../../src/components/Collapsable'import CommonResponses from '../common/CommonResponses.mdx'import CommonFilters from '../common/CommonFilters'import FromFunction from '../common/FromFunction.mdx'import CustomCodeBlock from '../../src/components/CustomCodeBlock'-import { patchRecordJs,- patchFilterJs,- patchMatchJs,- patchEqJs,- patchGtJs,- patchLtJs,- patchGteJs,- patchLteJs,- patchLikeJs,- patchIlikeJs,- patchIsJs,- patchInJs,- patchNeqJs- } from './examples/patch'+import {+ patchRecordJs,+ patchFilterJs,+ patchNotJs,+ patchMatchJs,+ patchEqJs,+ patchNeqJs,+ patchGtJs,+ patchLtJs,+ patchGteJs,+ patchLteJs,+ patchLikeJs,+ patchIlikeJs,+ patchIsJs,+ patchInJs,+ patchCsJs,+ patchCdJs,+ patchOvaJs,+ patchOvrJs,+ patchSlJs,+ patchSrJs,+ patchNxlJs,+ patchNxrJs,+ patchAdjJs,+} from './examples/patch'<DummyData />@@ -47,27 +57,30 @@ import { patchRecordJs,## Reference### `from()`-<FromFunction verb='patch' />++<FromFunction verb="patch" />### `update()`+```js {3}supabase.from(tableName).update(data, options?)```-+#### `data: object`+New record values.-#### `options: object?`+#### `options: object?````jsconst options = {- bulk: false // Protects against bulk updates. Set to true if you intend to perform a bulk change.+ bulk: false, // Protects against bulk updates. Set to true if you intend to perform a bulk change.}```-----+---## Filtering@@ -87,9 +100,33 @@ const options = {}`}/>-<br/>+<br />++<CommonFilters filter="filter" />++### `not()`++<CustomCodeBlock+ header="Shows how to use not( ) with update( )"+ js={patchNotJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "name": "Mordor", "country_id": 76 },+ { "name": "Mordor", "country_id": 156 },+ { "name": "Mordor", "country_id": 554 },+ { "name": "Mordor", "country_id": 556 },+ { "name": "Mordor", "country_id": 840 }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />-<CommonFilters filter='filter'/>+<CommonFilters filter="not" />### `match()`@@ -107,9 +144,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='match'/>+<CommonFilters filter="match" />### `eq()`@@ -127,9 +164,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='eq'/>+<CommonFilters filter="eq" />### `neq()`@@ -152,9 +189,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='neq'/>+<CommonFilters filter="neq" />### `gt()`@@ -174,9 +211,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='gt'/>+<CommonFilters filter="gt" />### `lt()`@@ -195,9 +232,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='lt'/>+<CommonFilters filter="lt" />### `gte()`@@ -218,9 +255,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='gte'/>+<CommonFilters filter="gte" />### `lte()`@@ -240,9 +277,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='lte'/>+<CommonFilters filter="lte" />### `like()`@@ -260,9 +297,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='like'/>+<CommonFilters filter="like" />### `ilike()`@@ -281,9 +318,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='ilike'/>+<CommonFilters filter="ilike" />### `is()`@@ -300,9 +337,9 @@ const options = {}`}/>-<br/>+<br />-<CommonFilters filter='is'/>+<CommonFilters filter="is" />### `in()`@@ -321,13 +358,295 @@ const options = {}`}/>-<br/>+<br />++<CommonFilters filter="in" />++### `cs()`++<CustomCodeBlock+ header="Shows how to use cs( ) with update( )"+ js={patchCsJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 556,+ "name": "Mordor",+ "population_range_millions": [185, 195]+ "main_exports": ["oil", "beans"],+ },+ { "id": 840,+ "name": "Mordor",+ "population_range_millions": [320, 330]+ "main_exports": ["oil", "cars", "food"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="cs" />++### `cd()`++<CustomCodeBlock+ header="Shows how to use cd( ) with update( )"+ js={patchCdJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 250,+ "name": "Mordor",+ "population_range_millions": [60, 70]+ "main_exports": ["cars", "machines"],+ },+ { "id": 554,+ "name": "Mordor",+ "population_range_millions": [4, 6]+ "main_exports": ["food", "machines"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="cd" />++### `ova()`++<CustomCodeBlock+ header="Shows how to use ova( ) with update( )"+ js={patchOvaJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 76,+ "name": "Mordor",+ "population_range_millions": [205, 215]+ "main_exports": ["beans", "minerals"],+ },+ { "id": 156,+ "name": "Mordor",+ "population_range_millions": [1380, 1390]+ "main_exports": ["computers", "phones"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="ova" />++### `ovr()`++<CustomCodeBlock+ header="Shows how to use ovr( ) with update( )"+ js={patchOvrJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 76,+ "name": "Mordor",+ "population_range_millions": [205, 215]+ "main_exports": ["beans", "minerals"],+ },+ { "id": 556,+ "name": "Mordor",+ "population_range_millions": [185, 195]+ "main_exports": ["oil", "beans"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="ovr" />++### `sl()`++<CustomCodeBlock+ header="Shows how to use sl( ) with update( )"+ js={patchSlJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 250,+ "name": "Mordor",+ "population_range_millions": [60, 70]+ "main_exports": ["cars", "machines"],+ },+ { "id": 554,+ "name": "Mordor",+ "population_range_millions": [4, 6]+ "main_exports": ["food", "machines"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="sl" />++### `sr()`++<CustomCodeBlock+ header="Shows how to use sr( ) with update( )"+ js={patchSrJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 156,+ "name": "Mordor",+ "population_range_millions": [1380, 1390]+ "main_exports": ["computers", "phones"],+ },+ { "id": 840,+ "name": "Mordor",+ "population_range_millions": [320, 330]+ "main_exports": ["oil", "cars", "food"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="sr" />++### `nxl()`++<CustomCodeBlock+ header="Shows how to use nxl( ) with update( )"+ js={patchNxlJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 76,+ "name": "Mordor",+ "population_range_millions": [205, 215]+ "main_exports": ["beans", "minerals"],+ },+ { "id": 156,+ "name": "Mordor",+ "population_range_millions": [1380, 1390]+ "main_exports": ["computers", "phones"],+ },+ { "id": 556,+ "name": "Mordor",+ "population_range_millions": [185, 195]+ "main_exports": ["oil", "beans"],+ },+ { "id": 840,+ "name": "Mordor",+ "population_range_millions": [320, 330]+ "main_exports": ["oil", "cars", "food"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="nxl" />++### `nxr()`++<CustomCodeBlock+ header="Shows how to use nxr( ) with update( )"+ js={patchNxrJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 76,+ "name": "Mordor",+ "population_range_millions": [205, 215]+ "main_exports": ["beans", "minerals"],+ },+ { "id": 250,+ "name": "Mordor",+ "population_range_millions": [60, 70]+ "main_exports": ["cars", "machines"],+ },+ { "id": 554,+ "name": "Mordor",+ "population_range_millions": [4, 6]+ "main_exports": ["food", "machines"],+ },+ { "id": 556,+ "name": "Mordor",+ "population_range_millions": [185, 195]+ "main_exports": ["oil", "beans"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="nxr" />-<CommonFilters filter='in'/>+### `adj()`++<CustomCodeBlock+ header="Shows how to use adj( ) with update( )"+ js={patchAdjJs}+ jsHighlight="{9}"+ response={`{+ "body": [+ { "id": 250,+ "name": "Mordor",+ "population_range_millions": [60, 70]+ "main_exports": ["cars", "machines"],+ },+ { "id": 556,+ "name": "Mordor",+ "population_range_millions": [185, 195]+ "main_exports": ["oil", "beans"],+ }+ ],+ "status": 200,+ "statusCode": 200,+ "statusText": "OK"+}`}+/>++<br />++<CommonFilters filter="adj" />## Responses#### 200 OK+Successful request-<CommonResponses />\ No newline at end of file+<CommonResponses />