Deterministic order for bulk mutation that uses multiple different remote schemas? #9474
-
When performing a bulk mutation to multiple different remote schemas, is there a deterministic order of execution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From the GraphQL spec, emphasis mine:
So yes, the root fields of a mutation are executed serially, and thus have a deterministic order of execution. This of course assumes the remote schemas won't return a result until they are finished executing. If the remote schemas return a result before they are finished executing whatever work the mutation entails, then you may face a race condition. |
Beta Was this translation helpful? Give feedback.
From the GraphQL spec, emphasis mine:
So yes, the root fields of a mutation are executed serially, and thus have a deterministic order of execution.
This of course assumes the remote schemas won't return a result until they are finished executing.
If the remote schem…