Skip to content

Commit

Permalink
Merge pull request #592 from Kilo-Loco/bug-fix-swift-query-docs
Browse files Browse the repository at this point in the history
Fix required explicit parameter name for Query docs
  • Loading branch information
loks0n authored Dec 3, 2024
2 parents 3739d41 + e02b928 commit 13bc61a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/routes/docs/products/databases/documents/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func main() async throws {
databaseId: "<DATABASE_ID>",
collectionId: "<COLLECTION_ID>",
queries: [
Query.equal("title", "Avatar")
Query.equal("title", value: "Avatar")
]
)
} catch {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/docs/products/databases/queries/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ func main() async throws {
databaseId: "<DATABASE_ID>",
collectionId: "<COLLECTION_ID>",
queries: [
Query.equal("title", ["Avatar", "Lord of the Rings"]),
Query.greaterThan("year", 1999)
Query.equal("title", value: ["Avatar", "Lord of the Rings"]),
Query.greaterThan("year", value: 1999)
]
)
} catch {
Expand Down
3 changes: 2 additions & 1 deletion src/routes/docs/products/databases/quick-start/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func main() async throws{
databaseId: "<DATABASE_ID>",
collectionId: "<COLLECTION_ID>",
queries: [
Query.equal("title", "Hamlet")
Query.equal("title", value: "Hamlet")
]
)
} catch {
Expand Down Expand Up @@ -237,5 +237,6 @@ suspend fun main() {
}
}
```

{% /multicode %}
{% /section %}

0 comments on commit 13bc61a

Please sign in to comment.