By the way, I try the upsert in ratel UI in “Mutate” block.
After I run the upsert to delete the node, I can still query the node “结核杆菌” in “Query” block with :
I would almost put money on it that you are missing the commitNow attribute. that is a new concept to most people coming into Dgraph. Doing a mutation without it makes it look like it is doing the delete, but it is really just preparing a delete and not committing the changes until it is told to.
I use ratel UI in “Mutate” block, I just click the “Run” button. And I see the chrome DevTools with the “Network” tab, I see the mutation did have “commitNow=true” attribute.
Oh, sorry, my fault, @ MichelDiz is right, I forgot the type…
I add the type with other node, not this node, I can delete the node with a type now.Thanks all of you to reply.