Explanation

Pagination

Why lists use cursor-based pagination and how Page, Edge and PageInfo fit together.

Lists in the Loco API use cursor-based pagination. Instead of page numbers, each item has an opaque cursor marking its position.

Type Role
…Page The list result. Contains edges and pageInfo.
…Edge One item: the node plus its cursor.
PageInfo hasNextPage and endCursor for fetching more.

Cursors stay stable when items are added or removed, so you never skip or duplicate items while paging. For a practical recipe, see Paginate through results.