Skip to main content

orders Query

List of orders. The query will not initiate any external requests, including filtering available shipping methods, or performing external tax calculations.

Requires MANAGE_ORDERSpermission.
orders(
sortBy: OrderSortingInput
filter: OrderFilterInput
where: OrderWhereInput
channel: String
search: String
before: String
after: String
first: Int
last: Int
): OrderCountableConnection

Arguments

orders.sortBy ● OrderSortingInput input orders

Sort orders.

orders.filter ● OrderFilterInput input orders

Filtering options for orders.

orders.where ● OrderWhereInput input orders

Where filtering options for draft orders.

Added in Saleor 3.22 (unreleased)

orders.channel ● String scalar miscellaneous

Slug of a channel for which the data should be returned.

orders.search ● String scalar miscellaneous

Search orders.

Added in Saleor 3.22 (unreleased)

orders.before ● String scalar miscellaneous

Return the elements in the list that come before the specified cursor.

orders.after ● String scalar miscellaneous

Return the elements in the list that come after the specified cursor.

orders.first ● Int scalar miscellaneous

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

orders.last ● Int scalar miscellaneous

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

Type

OrderCountableConnection object orders