PageConnection
A connection to a list of Page items.
Connection Structure
type PageConnection {
edges: [PageEdge]
nodes: [Page]
pageInfo: PageInfo!
totalCount: Int
}Pagination Arguments
PageInfo Structure
The pageInfo object contains pagination metadata about the current result set. It includes the following fields:
hasNextPage(Boolean!): Indicates whether there are more items after the current pagehasPreviousPage(Boolean!): Indicates whether there are items before the current pagestartCursor(String): The cursor of the first item in the current pageendCursor(String): The cursor of the last item in the current page
Example
query {
pages(first: 10, after: "cursor123") {
edges {
node {
id
title
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}Edge Type
The PageEdge type represents a single item in the connection. Each edge contains:
node: The actual Page object containing page datacursor: An opaque string used for pagination, allowing you to request items before or after this position