Skip to content

Conversation

@nettofarah
Copy link
Owner

Based on #3

CharlesMassry and others added 3 commits May 25, 2017 13:04
GraphQL spec requires pagination query, which ruby-graphql supports, to be in form of:

    query {
        vendors(first: 5) {
          edges {
            node {
              id
              name
              ingredients {
                name
                quantity
              }
            }
            cursor
          }
          pageInfo {
            endCursor
            hasNextPage
            hasPreviousPage
            startCursor
          }
        }
      }

This fixes that issue, now this commit will remove the N+1 query that was previously present from this GraphQL query
@nettofarah nettofarah merged commit 18fff57 into master May 26, 2017
@nettofarah nettofarah deleted the pagination branch May 26, 2017 16:17
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

Successfully merging this pull request may close these issues.

3 participants