--- title: >- Enhancements to pagination for GraphQL connections - Shopify developer changelog description: >- Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: >- https://shopify.dev/changelog/enhancements-to-pagination-for-graphql-connections md: >- https://shopify.dev/changelog/enhancements-to-pagination-for-graphql-connections.md metadata: effectiveApiVersion: '' affectedApi: [] primaryTag: displayName: API handle: api secondaryTag: displayName: Update handle: update indicatesActionRequired: false createdAt: '2022-03-16T17:44:45-04:00' postedAt: '2022-04-01T00:00:00-04:00' updatedAt: '2024-02-02T10:05:04-05:00' effectiveAt: '2022-04-01T00:00:00-04:00' --- April 1, 2022 Tags: * API # Enhancements to pagination for GraphQL connections In addition to `edges`, GraphQL connections now have a `nodes` field. When you only query `node` on `edges`, you can simplify the query. For example: `{ connection { edges { node { fields } } }` can be simplified to: `{ connection { nodes { fields } } }` `PageInfo` has been expanded as well to include `startCursor` and `endCursor`. When these fields are used in tandem, it can simplify the shape of return data for pagination. Previous query format: `{ connection { edges { cursor node { fields } } pageInfo { hasNextPage } } }` Improved query format: `{ connection { nodes { fields } pageInfo { hasNextPage endCursor } } }`