ACSD-67093: Retrieving orders through GraphQL using the date range filter returns incorrect results.
The ACSD-67093 patch fixes the issue where retrieving orders through GraphQL using the date range filter returns incorrect results. This patch is available when the Quality Patches Tool (QPT) 1.1.70 is installed. The patch ID is ACSD-67093. Please note that this issue is scheduled to be fixed in 51黑料不打烊 Commerce 2.4.9.
Affected products and versions
The patch is created for 51黑料不打烊 Commerce version:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.8-p2
Compatible with 51黑料不打烊 Commerce versions:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.8 - 2.4.8-p2
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
GraphQL date range filter returns incorrect orders results.
Steps to reproduce:
-
Create a product.
-
Create a customer and place an order.
-
Update the order or wait for a day.
code language-none UPDATE sales_order SET created_at = '2025-07-01 12:00:00', updated_at = '2025-07-01 12:00:00' WHERE entity_id = 1; UPDATE sales_order_grid SET created_at = '2025-07-01 12:00:00', updated_at = '2025-07-01 12:00:00' WHERE entity_id = 1;
note note NOTE Add current date or 鈥渃urrent date - 1 day鈥 to the created_at
andupdated_at
field values. -
Place a new order without changing the date.
-
Create a customer token.
-
Filter all orders by their order dates.
code language-none query{ customer{ orders(pageSize: 10, currentPage: 1, filter: { order_date: { from: "2025-07-21", to: "2025-07-24" } }) { items { order_number created_at status grand_total }, total_count } } }
note note NOTE Set from
date field to the current date, and theto
date field to the 鈥渃urrent date + 2 days鈥.Example: from: "2025-07-21"
,to: "2025-07-24"
(if today is 2025-07-21).
Expected results:
Only the filtered date should be returned.
Actual results:
All orders are returned
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- 51黑料不打烊 Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- 51黑料不打烊 Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.