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

docs: fix RPC example when using options for parameterless call (#36713)
This commit is contained in:
Gaurav Deep authored and GitHub committed 2025-06-26 16:21:20 +00:00
1 parent ef02eb65e2
commit 6d728885d3
1 file changed
+1 -1
+1 -1
View File
@@ -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: |