Skip to content

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

fix: swift fetch data array response

phamhieu48527d04a539
diff --git a/spec/supabase_swift_v0.yml b/spec/supabase_swift_v0.yml
index 880cfd4c958..57ab30ab9e0 100644
--- a/spec/supabase_swift_v0.yml
+++ b/spec/supabase_swift_v0.yml
@@ -44,7 +44,7 @@ functions:
isSpotlight: true
code: |
```js
- let city: CityModel = try await client.database
+ let cities: [CityModel] = try await client.database
.from("cities")
.execute().value
```
@@ -53,7 +53,7 @@ functions:
description: You can select specific fields from your tables.
code: |
```js
- let city: CityModel = try await client.database
+ let cities: [CityModel] = try await client.database
.from("cities")
.select(columns:"name")
.execute().value
@@ -63,7 +63,7 @@ functions:
description: If your database has foreign key relationships, you can query related tables too.
code: |
```js
- let country: CountryModel = try await client.database
+ let countries: [CountryModel] = try await client.database
.from("countries")
.select(columns:"""
id,
@@ -92,7 +92,7 @@ functions:
(both in the users) table
code: |
```js
- let message: MessageModel = try await client.database
+ let messages: [MessageModel] = try await client.database
.from("messages")
.select(columns:"""
content,
@@ -123,7 +123,7 @@ functions:
[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details.
code: |
```js
- let country: UserModel = try await client.database
+ let users: [UserModel] = try await client.database
.from("users")
.select(columns:"""
id, name