You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/code/Magento/SalesGraphQl/etc/schema.graphqls
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ type Customer {
25
25
filter: CustomerOrdersFilterInput@doc(description: "Defines the filter to use for searching customer orders."),
26
26
currentPage: Int = 1 @doc(description: "Specifies which page of results to return. The default value is 1."),
27
27
pageSize: Int = 20 @doc(description: "Specifies the maximum number of results to return at once. The default value is 20."),
28
+
sort: CustomerOrderSortInput@doc(description: "Specifies which field to sort on, and whether to return the results in ascending or descending order.")
28
29
scope: ScopeTypeEnum@doc(description: "Specifies the scope to search for customer orders. The Store request header identifies the customer's store view code. The default value of STORE limits the search to the value specified in the header. Specify WEBSITE to expand the search to include all customer orders assigned to the website that is defined in the header, or specify GLOBAL to include all customer orders across all websites and stores."),
@@ -33,6 +34,16 @@ input CustomerOrdersFilterInput @doc(description: "Identifies the filter to use
33
34
number: FilterStringTypeInput@doc(description: "Filters by order number.")
34
35
}
35
36
37
+
inputCustomerOrderSortInput@doc(description: "CustomerOrderSortInput specifies the field to use for sorting search results and indicates whether the results are sorted in ascending or descending order.") {
38
+
sort_field: CustomerOrderSortableField!@doc(description: "Specifies the field to use for sorting")
39
+
sort_direction: SortEnum!@doc(description: "This enumeration indicates whether to return results in ascending or descending order")
40
+
}
41
+
42
+
enumCustomerOrderSortableField@doc(description: "Specifies the field to use for sorting") {
43
+
NUMBER@doc(description: "Sorts customer orders by number")
44
+
CREATED_AT@doc(description: "Sorts customer orders by created_at field")
45
+
}
46
+
36
47
typeCustomerOrders@doc(description: "The collection of orders that match the conditions defined in the filter.") {
37
48
items: [CustomerOrder]!@doc(description: "An array of customer orders.")
0 commit comments