Delete only the UID “003” - So your application will only collect the UIDs from the comments and only delete these. You do not need to format an entire object for this process. Just know the UID of the comment.
{
"delete": [
{
"uid": "0x3"
}
]
}
There will no longer be any relation or predicate in the comment Node.
More details: Get started with Dgraph
Let’s say you wanna delete 6 comments in one batch:
{
"delete": [
{
"uid": "0x3"
},
{
"uid": "0xa"
},
{
"uid": "0xa22"
},
{
"uid": "0x2714"
}
{
"uid": "0x2716"
},
{
"uid": "0x2713"
}
]
}
This was updated well below