How to delete an empty node?

Here is a reference:

In theory, almost. Every uid list are “merely edges to nowhere” if that is how you want to look at it. A list of uids is a “list of uids” whether those uids have any triples stored in the graph or not.

Yourself coming from the GraphQL API down to the DQL lang itself you are seeing some of the power of the API that you don’t get. You have to now control the deletes of the * * O variety when Dgraph does not allow deletes of this variety.

In the API the schema shows everywhere possible for these uids to exist when being deleted and runs a S P O delete for each possible location where S is each possible pare node P is each edge and O is the node being deleted.

This again shows the need why we need something like the following not only in the GraphQL API, but also in the DQL language itself:

1 Like