Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
When using the updated_at greater than query on products, GraphQl is returning items that were updated before the specified time.
This does not appear to be replicated in REST API.
It appears to return anything within the same hour. Here are two Postmans showing two requests with an updated_at.
The first shows products with an older updated_at date being returned.
The second showing no products returned when the time is in the next hour.
Hey @pklitscher
Can you try adjusting the date format? I just had success with the following format:
{
products(first:10, query:"updated_at:'2021-07-01T21:49:05Z'") {
edges {
node {
id
updatedAt
}
}
}
}
Let me know if you're still stuck!
Scott | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi @SBD_
Thanks so much for the reply.
I found that the format you shared only works for equality. i.e it will only return changes that happened at exactly that time. A micro second either side and nothing is returned. It does not provide items updated after the specified time which is what I was trying to do with this query.
User | RANK |
---|---|
6 | |
4 | |
3 | |
3 | |
3 |