PageInfo
Information about pagination in a connection.
Type Definition
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}Fields
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.
Related Types
- Boolean