Replies: 1 comment
|
Hi @m1guelpf, table aliases are supported and documented here: https://swiftpackageindex.com/pointfreeco/swift-structured-queries/main/documentation/structuredqueriescore/table/as(_:) There are also many tests in the repo that demonstrate how to use this tool. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm working on a project which includes a Block record, which can include any number of other blocks as children. I'm trying to write a query like the following:
The generated query is not valid, producing the error
ambiguous column name: blocks.id:Usually you'd alias the joined table to avoid the conflict, but I haven't found a way to do this with this library
Example valid query
All reactions