Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deco/deps.ts>supabase.SupabaseClient#rpc

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
method supabase.SupabaseClient.prototype.rpc
Re-export
import { supabase } from "https://deno.land/x/deco@1.35.3/deps.ts";
const { SupabaseClient } = supabase;

Perform a function call.

Type Parameters

FunctionName extends string & keyof Schema["Functions"]
Function_ extends Schema["Functions"][FunctionName]

Parameters

The function name to call.

optional
args: Function_["Args"]

The parameters to pass to the function call.

optional
options: { head?: boolean; count?: "exact" | "planned" | "estimated"; }

When set to true, no data will be returned.

Returns

PostgrestFilterBuilder<Schema, Function_["Returns"] extends any[] ? Function_["Returns"][number] extends Record<string, unknown> ? Function_["Returns"][number] : never : never, Function_["Returns"]>