Mutations can be used to insert, update, or delete data. Dgraph automatically generates GraphQL mutation for each type that you define in your schema.
updateAuthor mutations in one request, the
first is guaranteed to finish before the second begins. This ensures that we
donβt end up with a race condition with ourselves. If one of the mutations is
aborted due error like transaction conflict, we continue performing the next
mutations.
Example: mutation on multiple types
union field in a type.
For the following schema,
members to the Home type: