Skip to main content
Version: v2.x

Multiple mutations in a request

Execution

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.

Run multiple top level mutations in the same request

Example: Delete all article objects written by an author and update the author object:

GraphiQL
Query Variables
Request Headers

Insert an object and a nested object in the same mutation

If you are trying to insert multiple objects which have relationships between them, you can use nested inserts.

Example: Insert a new article object with its author and return the inserted article object with its author in the response:

GraphiQL
Query Variables
Request Headers