Good afternoon,
I wonder how data consistency looks for GraphQL queries which require pagination.
Let’s consider the case of fetching an Order
using the GraphQL orders
query and then paginating over its lineItems
:
Am I right that if the order is being edited (e.g. the merchant is adding more items) as we’re paginating its lineItems
(using GraphQL pagination), then the Order
’s total price (which we got in the 1st response) might not add up to the sum of all the lineItem
s prices (which we managed ?
In other words, can GraphQL pagination lead to potential data inconsistencies (due to simultaneous changes to the data happening in the background)?
Thank you