--- 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 --- [Back to Developer changelog](https://shopify.dev/changelog) 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 } } }`