Skip to content

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

docs: fix RPC example for parameterless calls by adding undefined (#36714)

Gaurav Deep6d728885d319
diff --git a/apps/docs/spec/supabase_js_v2.yml b/apps/docs/spec/supabase_js_v2.yml
index 1a415da3fef..b69b6cb68af 100644
--- a/apps/docs/spec/supabase_js_v2.yml
+++ b/apps/docs/spec/supabase_js_v2.yml
@@ -4406,7 +4406,7 @@ functions:
name: Call a read-only Postgres function
code: |
```ts
- const { data, error } = await supabase.rpc('hello_world', { get: true })
+ const { data, error } = await supabase.rpc('hello_world', undefined, { get: true })
```
data:
sql: |