Comments (3)
Hi @matthewmorek.
Unfortunately, I don't have the resources to add specific examples for the Swift libraries, but examples from the official JS library should work, just performing the required JS -> Swift translation.
If you find any example that doesn't work with this library, it can possible be a bug on postgrest-swift
.
For your specific case, you can check the PostgREST documentation (https://postgrest.org/en/stable/api.html#resource-embedding).
Try something like this, embedding the category
relationship on the select(columns:)
method.
let response = try await client.database.from("links").select(columns: "*,category(*)").execute()
from postgrest-swift.
Sure, will close this then.
from postgrest-swift.
Thanks for the tips. I might actually create a PR with a few more examples and a link to PostgREST docs, as I didn't know this was even a thing.
from postgrest-swift.
Related Issues (20)
- Setup CI with GitHub Actions HOT 1
- Improve PostgrestFilterBuilder Semantics for work in Swift
- Building for x86_64x Produces Error HOT 1
- Provide parameter „returning:minimal“ for Swift HOT 4
- Async/Await HOT 1
- example for update pls HOT 1
- Set filter/eq function value input from String to Any
- "All object keys must match" error on Insert HOT 13
- Add `URLQueryRepresentable` conformance to `Bool`
- this has a problem with anycodable when used with xcframework
- Default decoder for Date for `timestamptz` results in nil value
- Unable to escape `timestamptz` string in query HOT 2
- `PostgrestError`s not reported correctly HOT 1
- Upsert Returns 409 (Conflict) on Subsequent Requests
- ilike query not finding strings when it contains a + HOT 4
- Status 400 when attempting to query by array value HOT 2
- Xcode 14.1 error when building HOT 2
- Update 400 errors
- Rename `foreignTable` to `referencedTable`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgrest-swift.