Skip to content

Nested Objects #1

Open
Open
@bentatham

Description

@bentatham

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions