Skip to content

Commit f053312

Browse files
32370 change sortable field to NUMBER and CREATED_AT
1 parent 72f33fd commit f053312

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/SalesGraphQl/etc/graphql/di.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
<arguments>
4747
<argument name="map" xsi:type="array">
4848
<item name="CustomerOrderSortableField" xsi:type="array">
49-
<item name="order_id" xsi:type="string">entity_id</item>
49+
<item name="number" xsi:type="string">increment_id</item>
50+
<item name="created_at" xsi:type="string">created_at</item>
5051
</item>
5152
</argument>
5253
</arguments>

app/code/Magento/SalesGraphQl/etc/schema.graphqls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ input CustomerOrderSortInput @doc(description: "CustomerOrderSortInput specifies
3939
}
4040

4141
enum CustomerOrderSortableField @doc(description: "Specifies the field to use for sorting") {
42-
ORDER_ID @doc(description: "Sorts customer orders by ID")
42+
NUMBER @doc(description: "Sorts customer orders by number")
43+
CREATED_AT @doc(description: "Sorts customer orders by created_at field")
4344
}
4445

4546
type CustomerOrders @doc(description: "The collection of orders that match the conditions defined in the filter") {

0 commit comments

Comments
 (0)