Add mutations allows you to add new objects of a particular type. Dgraph automatically generates input and return types in the schema for the add mutation.
add
mutation, as shown below:
add
mutation to an upsert
mutation by setting the value
of the input variable upsert
to true
. For more information, see Upsert
Mutations.