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 information about pagination through the connection. It includes:
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
{
orders(first: 10, after: "eyJkaXJlY3Rpb24iOiJuZXh0In0=") {
edges {
node {
id
orderNumber
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}Edge Type
The OrderEdge type represents an individual edge in the connection. Each edge contains:
node: The actual Order objectcursor: An opaque string that marks the position of this item in the connection, used for pagination withbeforeandafterarguments