# 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 | | before | String | Returns items before the specified cursor | | after | String | Returns items after the specified cursor | ## 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 page - `hasPreviousPage` (Boolean): Indicates whether there are 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 { 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 object - `cursor`: An opaque string that marks the position of this item in the connection, used for pagination with `before` and `after` arguments ## Related Types - [OrderEdge](/reference/storefront/1.3.0/connections/order-edge) - [Order](/reference/storefront/1.3.0/objects/order) - [PageInfo](/reference/storefront/1.3.0/objects/page-info)