OrderConnection
A connection to a list of Order items.
Connection Structure
type OrderConnection {
edges: [OrderEdge]
nodes: [Order]
pageInfo: PageInfo!
totalCount: Int
}Pagination Arguments
PageInfo Structure
The pageInfo object contains pagination metadata about the connection:
hasNextPage(Boolean!): Whether there are more items after the current pagehasPreviousPage(Boolean!): Whether there are more 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 {
orders(first: 10, after: "eyJpZCI6IjEwMDEifQ==") {
edges {
cursor
node {
id
}
}
nodes {
id
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}Edge Type
The OrderEdge type represents a single item in the connection. Each edge contains:
cursor(String!): An opaque string used for pagination to identify the position of this itemnode(Order): The actual Order object containing the item’s data