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

N+1 problem while fetching child relation with RelayedConnection #35

Open
abrar30 opened this issue Jun 15, 2020 · 0 comments
Open

N+1 problem while fetching child relation with RelayedConnection #35

abrar30 opened this issue Jun 15, 2020 · 0 comments

Comments

@abrar30
Copy link

abrar30 commented Jun 15, 2020

I run into n+1 problem even though i have data-loader done that is being ignored by auto-relay.
I want first 2 state of each country.I have 243 countries.
Thanks in advance.
`
query getCountry($cursor: String, $id: String) {
getCountry {
name

state(first: 2, after: $cursor){
  edges {
    node {
      name
    }
  }
  pageInfo {
    endCursor
    hasNextPage
  }
}

}
}
`

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