Perform a function call.
You can call Postgres functions as Remote Procedure Calls, logic in your database that you can execute from anywhere. Functions are useful when the logic rarely changes—like for password resets and updates.
The function name to call.
The arguments to pass to the function call.
final data = await supabase
.rpc('hello_world');
final data = await supabase
.rpc('echo_city', params: \{ 'say': 'đź‘‹' \});
final data = await supabase
.rpc('add_one_each', params: \{ arr: [1, 2, 3] \});
final data = await supabase
.rpc('list_stored_countries')
.eq('id', 1)
.single();