Mutations
Delete Mutations
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.
Delete Mutations allow you to delete objects of a particular type.
We use the following schema to demonstrate some examples.
Schema:
Dgraph automatically generates input and return types in the schema for the
delete
mutation. Delete mutations take filter
as an input to select specific
objects and returns the state of the objects before deletion.
Example: delete mutation using variables
Variables:
Examples
You can refer to the following link for more examples.
Was this page helpful?