Update mutations let you update existing objects of a particular type, by filtering nodes and setting or removing any field belonging to that type.
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.
remove {}
or an empty set{}
doesn’t have any effect on
the update mutation.set
mutation using variables:
remove
mutation using variables: