On this page
Why this happens
GraphQL connections return bounded pages. A successful response can contain only the first portion of the catalog, and nested connections have their own pagination.
Implementation
Request product IDs and the fields needed by the export. Persist the cursor only after processing the page successfully. For large catalogs consider a bulk query instead of repeatedly paging through deeply nested data.
Example
query Products($after: String) {
products(first: 250, after: $after) {
nodes { id title }
pageInfo { hasNextPage endCursor }
}
}
Start with a null cursor. Continue while hasNextPage is true, passing endCursor into the next request. Deduplicate by ID and handle throttling before advancing the checkpoint.
- Test with more than 250 products
- compare unique IDs with an independent count
- interrupt and resume an export
- test products with many variants
- confirm no missing or duplicated IDs.

