Skip to Content

PageInfo

Information about pagination in a connection. This type provides cursor-based pagination details to help you navigate through paginated results efficiently.

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 within connection types to provide pagination metadata. It appears in PreviousPriceConnection and ProductConnection, allowing you to determine whether additional pages exist and to obtain cursor values for subsequent queries.

Example

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

Implements

This type does not implement any interfaces.

  • Boolean