draftOrders Query
List of draft orders. The query will not initiate any external requests, including filtering available shipping methods, or performing external tax calculations.
draftOrders(
sortBy: OrderSortingInput
filter: OrderDraftFilterInput
where: DraftOrderWhereInput
search: String
before: String
after: String
first: Int
last: Int
): OrderCountableConnection
Arguments
draftOrders.sortBy
● OrderSortingInput
input orders
Sort draft orders.
draftOrders.filter
● OrderDraftFilterInput
deprecated input orders
DEPRECATED
Use where
filter instead.
Filtering options for draft orders.
draftOrders.where
● DraftOrderWhereInput
input orders
Where filtering options for draft orders.
Added in Saleor 3.22draftOrders.search
● String
scalar miscellaneous
Search orders.
Added in Saleor 3.22draftOrders.before
● String
scalar miscellaneous
Return the elements in the list that come before the specified cursor.
draftOrders.after
● String
scalar miscellaneous
Return the elements in the list that come after the specified cursor.
draftOrders.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.
draftOrders.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.