The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: add functions doc for v1.0-dev dart
dshukertjrf95ff942e6e8
diff --git a/apps/reference/_supabase_dart/generated/invoke.mdx b/apps/reference/_supabase_dart/generated/invoke.mdxindex 1bc5f777f03..cd946b09aaa 100644--- a/apps/reference/_supabase_dart/generated/invoke.mdx+++ b/apps/reference/_supabase_dart/generated/invoke.mdx@@ -11,9 +11,8 @@ import TabItem from '@theme/TabItem'Invokes a Supabase Function. See the [guide](/docs/guides/functions) for details on writing Functions.```dart-final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'});+final res = await supabase.functions.invoke('hello', body: {'foo': 'baa'});final data = res.data;-final error = res.error;```## Notes@@ -26,9 +25,8 @@ final error = res.error;### Basic invocation.```dart-final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'});+final res = await supabase.functions.invoke('hello', body: {'foo': 'baa'});final data = res.data;-final error = res.error;```### Specifying response type.@@ -36,13 +34,12 @@ final error = res.error;By default, `invoke()` will parse the response as JSON. You can parse the response in the following formats: `json`, `blob`, `text`, and `arrayBuffer`.```dart-final res = await supabaseClient.functions.invoke(+final res = await supabase.functions.invoke('hello',body: {'foo': 'baa'},responseType: ResponseType.text,);final data = res.data;-final error = res.error;```### Parsing custom headers.@@ -50,11 +47,11 @@ final error = res.error;Any `headers` will be passed through to the function. A common pattern is to pass a logged-in user's JWT token as an Authorization header.```dart-final res = await supabaseClient.functions.invoke(+final res = await supabase.functions.invoke('hello',body: {'foo': 'baa'},headers: {- 'Authorization': 'Bearer ${supabase.auth.session()?.access_token}'+ 'Authorization': 'Bearer ${supabase.auth.currentSession?.accessToken}'},);```