Pagination types
Cursor-based
Used by GraphQL APIs, Shopify, Slack, and similar services that return a cursor pointing to the next page:Page number
Used by GitHub REST, Rails, Django, and APIs that accept a page number parameter:Offset
Used by Elasticsearch, SQL-style APIs, and services that accept offset and limit parameters:Stop conditions
Pagination stops automatically when there are no more results:- Cursor:
hasMoreFieldreturnsfalse, or the cursor isnull/undefined - Page number / Offset: The response returns an empty result set

