I’m looking for a way to do the JSON equivalent of:
{
delete {
<0xbeef> <predicate> * .
}
}
That is, a way to delete a predicate without knowing its value. I’ve discovered through experimentation that you can delete using setDeleteJson({uid: '0xbeef', predicate: 'value'})
if you know that predicate == ‘value’. I’m looking for a way to delete the predicate without knowing the value ahead of time, however. In case it matters, the predicate I’m trying to delete is part of a type.
I’m hoping to avoid switching to nquads whatever way possible to avoid introducing multiple ways to mutate values in my code.
I’m running Dgraph 1.1.0 (ef7cdb28).