Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: add linebreak to function invocation example

[email protected]84453e74aa50
diff --git a/spec/supabase_swift_v1.yml b/spec/supabase_swift_v1.yml
index 2779e3cf025..bb6db9ac8f8 100644
--- a/spec/supabase_swift_v1.yml
+++ b/spec/supabase_swift_v1.yml
@@ -89,7 +89,7 @@ functions:
which join you intend to use. For convenience, you can also give an
alias for each column. For example, if we had a shop of products,
and we wanted to get the supplier and the purchaser at the same time
- (both in the users) table:
+ (both in the users) table
code: |
```js
let message: MessageModel = try await client.database
@@ -2311,11 +2311,10 @@ functions:
code: |
```js
try await supabase.functions.invoke(
- functionName: "hello",
- invokeOptions: body: FooModel(foo: "baa"))
- { data, response in
-
- }
+ functionName: "hello",
+ invokeOptions: .init(body: Foo(foo: "baa"))) {
+ data, response in
+ }
```
- id: parsing-custom-headers
name: Parsing custom headers.