Hi, I am Aleksei from Supermetrics.
We encountered an issue with a list of our clients shops. It seems that GraphQL API is not returning the expected data, although REST API does.
For example:
Shop in question - the-gin-project.myshopify.com
Dates – 2021-12-01 – 2021-12-31
REST API seems to return correct orders for all days.
GraphQL doesn‘t return data for 01-04 and 06-12 days. For 5th day it returns two orders. From the 13th it looks like all orders are returned correctly. So for almost half of the moth data is missing with GraphQL.
Single day REST API query with orders returned:
https://the-gin-project.myshopify.com/admin/api/2021-07/orders.json?created_at_min=2021-12-01T00:00:00+00:00&created_at_max=2021-12-01T23:59:59+00:00
Same day GraphQL query with zero orders in result:
https://the-gin-project.myshopify.com/admin/api/2021-07/graphql.json
mutation {
bulkOperationRunQuery(
query: """
{
orders(query:"test:false created_at:>='2021-12-01T00:00:00' created_at:<'2021-12-01T23:59:59'") {
edges {
node {
id
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
Bulk operation response:
{
"data": {
"node": {
"id": "gid://shopify/BulkOperation/...",
"status": "COMPLETED",
"errorCode": null,
"createdAt": "2022-01-10T10:30:49Z",
"completedAt": "2022-01-10T10:30:49Z",
"objectCount": "0",
"fileSize": null,
"url": null,
"partialDataUrl": null
}
},
"extensions": {...}
}
At some point there were orders in the result for 01-07 days when requested separately fore ach day. When requested for whole month, these days had zero orders. Days 08-12 didn‘t returned any orders even when requested separately. And, as mentioned before, currently even daily requests do not return orders for provided days.
UPDATE:> The issue was solved for the-gin-project.myshopify.com . After emailing to support. But we see same problems with lost of other shops - orders are missing from GraphQL:> > for example:> the-gin-project.myshopify.com - Although the problem affecting December was fixed after email to support, now customers are seeing that August and September data is incorrect.> vineapparel-com.myshopify.com - Jan to November 2021 data is all busted.> tailored-athlete-usa.myshopify.com - data for the year 2021 (up until around period between January through until November) is busted> tailored-athlete-clothing.myshopify.com - data for the year 2021 (up until around period between January through until November) is busted
We believe this might be a major bug on Shopify API side.
Any insight is appreciated