You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this project seems to be just a very early prototype example, and perhaps you've moved on, but I am curious if you ever made some of this work.
In general, did you figure out how to map the "flat" result of the Record object into the "nested" objects of the graphql response.
In particular, in your example, you want to retrieve Customer objects with a nested list of Invoice objects. However, the jooq select/join (in DatabaseAccess) will return a "flat" record of all the fields in the Customer and Invoices tables into the joined table. So how do those get mapped to the correct hierarchy in GraphQL response? In the current code here, this does not work.
The text was updated successfully, but these errors were encountered:
I know this project seems to be just a very early prototype example, and perhaps you've moved on, but I am curious if you ever made some of this work.
In general, did you figure out how to map the "flat" result of the Record object into the "nested" objects of the graphql response.
In particular, in your example, you want to retrieve Customer objects with a nested list of Invoice objects. However, the jooq select/join (in
DatabaseAccess
) will return a "flat" record of all the fields in the Customer and Invoices tables into the joined table. So how do those get mapped to the correct hierarchy in GraphQL response? In the current code here, this does not work.The text was updated successfully, but these errors were encountered: