- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Selection
PageInfo
The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.
Selection. This type is a selection. An intent returns it, and you choose which of its fields come back.
The Relay compliant PageInfo type, containing data necessary to paginate this connection.
Where it appears
Section titled “Where it appears”No connection leads here from a primary entity.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
hasNextPage |
Boolean! |
When paginating forwards, are there more items? |
hasPreviousPage |
Boolean! |
When paginating backwards, are there more items? |
startCursor |
String |
When paginating backwards, the cursor to continue. |
endCursor |
String |
When paginating forwards, the cursor to continue. |
Example
Section titled “Example”query { search(searchInput: { entityType: BRAND name: "Safeway" conditions: { limit: 1 } }) { ... on Brand { names(first: 1) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } } } }}Response, as returned:
{ "data": { "search": [ { "names": { "pageInfo": { "hasNextPage": true, "hasPreviousPage": false, "startCursor": "eyJpZHgiOjB9", "endCursor": "eyJpZHgiOjB9" } } } ] }}