Invokes a function
Invokes a Supabase Edge Function.
The name of the Function to invoke.
Options for invoking the Function.
const \{ data, error \} = await supabase.functions.invoke('hello', \{
body: JSON.stringify(\{ foo: 'bar' \})
\})
const \{ data, error \} = await supabase.functions.invoke('hello', \{
responseType: 'text',
body: JSON.stringify(\{ foo: 'bar' \})
\})
const \{ data, error \} = await supabase.functions.invoke('hello', \{
headers: \{
"my-custom-header": 'my-custom-header-value'
\},
body: JSON.stringify(\{ foo: 'bar' \})
\})