hello, there’s a bug in shopify’s graphql query because of which i’m getting inconsistent results, the order date filter seems to be behaving erratically with shopify bulk api request.
i’m using shopify’s bulk api to run this query to fetch all orders in last 7 days
{
orders(
query: "created_at:>=2022-09-23T00:00:00+0200 AND created_at:<2022-09-30T00:00:00+0200"
sortKey: CREATED_AT
reverse: true
) {
edges {
node {
createdAt
currentSubtotalLineItemsQuantity
currentTotalPriceSet {
shopMoney {
amount
}
}
}
}
}
}
i have a user who have had 1 order in last 7 days (on 28th September) but it’s not showing up in the results with this gql query
now if i change the query parameter to last 30 days, then it’s showing up (order with createdAt date 28th September) along with bunch of other orders
{
orders(
query: "created_at:>=2022-08-31T00:00:00+0200 AND created_at:<2022-09-30T00:00:00+0200"
sortKey: CREATED_AT
reverse: true
) {
edges {
node {
createdAt
currentSubtotalLineItemsQuantity
currentTotalPriceSet {
shopMoney {
amount
}
}
}
}
}
}
can anyone look into this please?