Pagination
Last updated
Was this helpful?
Last updated
Was this helpful?
Shopify uses cursor-based pagination, and this is a concept you will frequently use in your Mechanic tasks. Shopify has excellent coverage on the topics, I highly recommend reviewing their .
In the query below you'll notice the fieldspageInfo
and cursor
. These are important concepts for pagination, make sure to review them in the resources listed below. Page info tells us if there is another page of results before or after the current page. The cursor
field provides a reference to an edge's position, which is then used as an anchor to retrieves nodes before or after it in the connection.