We’re overhauling Dgraph’s docs to make them clearer and more approachable. If
you notice any issues during this transition or have suggestions, please
let us know.
update
mutation. Update mutations take filter
as an input to select specific
objects. You can specify set
and remove
operations on fields belonging to
the filtered objects. It returns the state of the objects after updating.
Executing an empty
remove {}
or an empty set{}
doesn’t have any effect on
the update mutation.Set
For example, an updateset
mutation using variables:
Remove
For example an updateremove
mutation using variables: