Replies: 1 comment 1 reply
-
|
Mutations in a single request are processed serially: https://spec.graphql.org/October2021/#sec-Mutation If you mean operations in different requests, then that depends on your backend/database layer and is not GraphQL specific. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
If multiple mutations executed against the same entity at the same time, but modifying different values - we can get into race conditions with unpredictable results. To avoid this, it is necessary to put mutations on the same entity (or request, or user) in a queue, and process them one by one.
So the my question is how and where is better to do that?
Is there any place where I can have access to request and mutations before they are going to be executed?
Or may be there exists another way how to handle race conditions?
Beta Was this translation helpful? Give feedback.
All reactions