Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs(postgrest-js): update bulk rpc

Bobbie Soedirgof5cc57c123de
diff --git a/web/spec/postgrest.yml b/web/spec/postgrest.yml
index cd22d96de13..baafd9eca98 100644
--- a/web/spec/postgrest.yml
+++ b/web/spec/postgrest.yml
@@ -319,7 +319,6 @@ pages:
```js
const { data, error } = await postgrest
.rpc('hello_world')
- }
```
py: |
```py
@@ -336,21 +335,18 @@ pages:
```py
# Not yet implemented
```
- - name: Bulk call
+ - name: Bulk processing
+ description: You can process large payloads at once using [array parameters](https://postgrest.org/en/stable/api.html#calling-functions-with-array-parameters).
js: |
```js
const { data, error } = await postgrest
- .rpc('echo_city', [
- { name: 'The Shire' },
- { name: 'Mordor' }
- ])
- }
+ .rpc('echo_cities', { names: ['The Shire', 'Mordor'] })
```
py: |
```py
# Not yet implemented
```
- - name: With filters.
+ - name: With filters
description: |
Stored procedures that return tables can also be combined with
`modifiers` and
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 45f4e397478..e9e3ca7158b 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -732,16 +732,14 @@ pages:
const { data, error } = await supabase
.rpc('echo_city', { name: 'The Shire' })
```
- - name: Bulk call
+ - name: Bulk processing
+ description: You can process large payloads at once using [array parameters](https://postgrest.org/en/stable/api.html#calling-functions-with-array-parameters).
js: |
```js
- const { data, error } = await supabase
- .rpc('echo_city', [
- { name: 'The Shire' },
- { name: 'Mordor' }
- ])
+ const { data, error } = await postgrest
+ .rpc('echo_cities', { names: ['The Shire', 'Mordor'] })
```
- - name: With filters.
+ - name: With filters
description: |
Stored procedures that return tables can also be combined with
[Modifiers](/docs/reference/javascript/using-modifiers) and