I want to perform a S * * delete as outlined here: https://docs.dgraph.io/mutations/#delete
I’ve tried using DeleteEdges
, but it didn’t seem to work:
mu = &api.Mutation{}
dgo.DeleteEdges(mu, r.Users[0].Uid, "*")
I also tried creating the mutation myself, but it also didn’t seem to work:
mu = &api.Mutation{
Del: []*api.NQuad{
{
Subject: r.Users[0].Uid,
Predicate: "*",
ObjectValue: &api.Value{Val: &api.Value_DefaultVal{"_STAR_ALL"}},
},
},
}
What is the correct way to delete all outgoing edges from a node?