OrderingQuery.orders()
Input
after
(optional)
String
- A cursor value used for pagination. When provided, the query returns orders after the specified cursor. To paginate through results, use the cursor
value from the last edge of the previous response.
Example:
Response
OrderingOrdersConnection
OrderingOrdersConnection
- A connection object containing a list of orders.
OrderingOrdersConnection
edges
OrderingOrdersEdge[]
- An array of edges, each containing an order node.
OrderingOrdersEdge
node
OrderingOrder
- The order object containing all order details.
cursor
String
- A unique cursor value for this edge. Use this value as the after
parameter in subsequent queries to fetch the next page of results.
Cursor values should be treated as opaque identifiers. While they may appear numeric in the current implementation, their format is subject to change and should not be parsed or manipulated.
Pagination
Theorders
query uses cursor-based pagination, allowing you to efficiently paginate through large sets of orders. Each edge in the response includes a cursor
field that can be used to fetch the next set of results.
How It Works
- Make an initial query without the
after
parameter to get the first page of results - Extract the
cursor
value from the last edge in the response - Use that
cursor
as theafter
parameter in your next query to fetch the next page - Repeat until you’ve retrieved all the orders you need