mutation {
mut1(...) {...}
mut2(...) {...}
...
}
If I execute multiple mutations in the same request, assuming mut1 succeeds and mut2 fails, will the API roll back the changes made for mut1? So if one fails, all fail? Or will the changes from mut1 be kept?
From the GraphQL specification, if I understand correctly, mutations are executed sequentially, and there is no information in case of failures.
I did find that the Hasura GraphQL engine rolls back the changes, but I wanted to ask if this is also the case for Monday.
hasura.io
" If multiple mutations are part of the same request, they are executed sequentially in a single transaction. If any of the mutations fail, all the executed mutations will be rolled back."