orderConnection
Fetch Orders
Restrictions: User needs to be logged in, results restricted by usertype
With a customer token only the logged-in customer's own orders are returned; with an admin token orders for all customers are returned
orderConnection(
filter: OrdersFilter
sort: [OrderSort!]! = [object Object]
first: Int! = 30
after: String
offset: Int = 0
): OrderConnection
Arguments
filter ● OrdersFilter
Manage what data you will get
sort ● [OrderSort!]!
Which algorithms we will sort by (default: id in ascending order)
first ● Int!
How many orders will be fetched. (default: 30, max: 200)
after ● String
Cursor based pagination. The ID, in this case order ID, of the last item on the previous page.
offset ● Int
Offset based pagination for the orders fetched. (default: 0). Does not work with cursor based pagination "after".
Type
OrderConnection
Representation of a paginated connection list of orders