Skip to Content

PageInfo

Information about pagination in a connection.

Type Definition

type PageInfo { hasNextPage: Boolean! hasPreviousPage: Boolean! startCursor: String endCursor: String }

Fields

FieldTypeDescription
hasNextPageBoolean!Indicates if there are more pages to fetch.
hasPreviousPageBoolean!Indicates if there are previous pages to go back to.
startCursorStringThe cursor corresponding to the first node in the edges list.
endCursorStringThe cursor corresponding to the last node in the edges list.

Relationships

PageInfo is used to provide pagination metadata for connection types in the API. It is returned as part of connection objects to enable cursor-based pagination, allowing clients to navigate through paginated result sets efficiently.

Example

query { products(first: 10) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } } }

Implements

This type does not implement any interfaces.

  • Boolean