Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Objects #1

Open
bentatham opened this issue Nov 12, 2018 · 0 comments
Open

Nested Objects #1

bentatham opened this issue Nov 12, 2018 · 0 comments

Comments

@bentatham
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant