# OrderConnection A connection to a list of Order items. ## Connection Structure ```graphql type OrderConnection { edges: [OrderEdge] nodes: [Order] pageInfo: PageInfo! totalCount: Int } ``` ## Pagination Arguments | Argument | Type | Description | |----------|------|-------------| | `first` | Int | Returns the first n items from the list | | `last` | Int | Returns the last n items from the list | | `after` | String | Returns items after the specified cursor | | `before` | String | Returns items before the specified cursor | ## PageInfo Structure The `pageInfo` object contains pagination metadata about the connection: - `hasNextPage` (Boolean!): Whether there are more items after the current page - `hasPreviousPage` (Boolean!): Whether there are more items before the current page - `startCursor` (String): The cursor of the first item in the current page - `endCursor` (String): The cursor of the last item in the current page ## Example ```graphql 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 item - `node` (Order): The actual Order object containing the item's data ## Related Types - [OrderEdge](/reference/storefront/v1/connections/order-edge) - [Order](/reference/storefront/v1/objects/order) - [PageInfo](/reference/storefront/v1/objects/page-info)