Skip to content

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

@abrar30

Description

@abrar30

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
  }
}

}
}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions