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 queries and info #272

Open
Tracked by #297
codelover2k opened this issue May 30, 2021 · 1 comment
Open
Tracked by #297

nested queries and info #272

codelover2k opened this issue May 30, 2021 · 1 comment

Comments

@codelover2k
Copy link

I have a query that looks like this:

movies {
  name
  actors {
    firstname
    lastname
    movies {
      name
    }
  }
}

at the moment it is very easy for me to use the dataloader to query the actors of each movie but I have two problems:

  1. how do I use the dataloader to query the children of the children? In my case the movies of an actor
  2. how can I pass the parsed info data (so I know what fields are queried) to the dataloader, without reparsing the info, because as you know, the children-resolver is invoked for each parent

would be nice to see a simple example
thanks in advanced!

@dyst5422
Copy link

  1. This is the N+1 query problem, so good luck
  2. This can be part of your args to dataloader

@saihaj saihaj mentioned this issue Mar 11, 2022
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants