Perform a function call.
The function name to call
The arguments to pass to the function call
Named parameters
// For cross-schema functions where type inference fails, use overrideTypes:
const { data } = await supabase
.schema('schema_b')
.rpc('function_a', {})
.overrideTypes<{ id: string; user_id: string }[]>()
const { data, error } = await supabase.rpc('hello_world')
const { data, error } = await supabase.rpc('echo', { say: '👋' })
const { data, error } = await supabase.rpc('add_one_each', { arr: [1, 2, 3] })
const { data, error } = await supabase
.rpc('list_stored_countries')
.eq('id', 1)
.single()
const { data, error } = await supabase.rpc('hello_world', undefined, { get: true })