I have a requirement to pull recently updated line_items data from Orders API, I see that we have field-updated_at in line_items data set, however I’m not able to use that in the query.
Please suggest, how can I use updated_at to get last updated based on 5Mins ,10Mins etc. time frames?
Thanks for reaching out and Welcome to our Developer Community!
I don’t believe you’ll be able to filter by line items updated when using the orders query. You can filter by order updated however. If you wanted to get the orders updated within the past 10 minutes, the query would look something like this:
I’m reaching out to you regarding the same issue mentioned you earlier. As you already know we’re trying to consume the Orders - Line items and trying to find a way to bring the delta information which changed over time.
We have implemented this approach for reading Orders data(Only header) and for this Updated_at field is used for sort and also we used endcursor from the pagination to read the next updated data in Orders dataset. This worked perfectly.
However, same kind of logic we’re trying to implement for Line-Items in Orders dataset. For some reason it’s not working. Please check the below sample GraphQL query we’re using.
Here, Line items updated date is in future compared to the header data and, Order requirement is to get only Line-items data based on updated_at field and endcursor.
Could you provide the solution or approach for bringing this data.
Similar issue we have seen for Purchase Orders and Returns.
Your suggestion would help us to make the better API for orders and also this is very crucial for us. Since we’re stuck at this point.
Please keep me updated on the progress and any updates that arise during your collaboration.
This issue has become a bottleneck for our project, so looking for the solution as soon as possible.
If you have any questions or concerns, please don’t hesitate to reach out. I’m here to provide any assistance or clarification needed.