GraphQL lets you fetch only the fields you need, keeping network responses small and fast. However, if a result list has many elements, the response can still be large. To manage this, you need to use pagination.Our GraphQL API uses cursor-based pagination with four parameters:
after: Get items after a specific cursor
before: Get items before a specific cursor
first: Get the first x items
last: Get the last x items
In your query, you can ask for pageInfo and pageData to get all the pagination details. Here’s an example that fetches the first item after a given cursor.