Nested @Selection query #439
Unanswered
horatiu1921
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi,
I am in the process of converting my app from SwiftData to SQLiteData, but I am struggling with the mapping of SwiftData relationships to SQLiteData.
Consider the following tables:
And query the above tables to produce the following:
@Selectionthat joins several tables. Is it possible to buildInvoiceItem.Columns()inside the same select that buildsInvoice.Columns()?Invoice.Columns(invoice: currency: customer:), the compiler is unable to compile the query.@Column(as: Currency.JSONRepresentation.self) let currency: Currency? Or is ok with simple properties.Thank you!
Horatiu
Beta Was this translation helpful? Give feedback.
All reactions