Skip to content

Commit

Permalink
fix: swift fetch data array response
Browse files Browse the repository at this point in the history
  • Loading branch information
phamhieu committed Jun 5, 2023
1 parent 1d5a53e commit 48527d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/supabase_swift_v0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 48527d0

Please sign in to comment.