@pbenipal61, I wonder that you have not defined type in your schema. Delete (that only specifies UID) will only work if you have type defined in your schema and the nodes that you are deleting have corresponding <dgraph.type> predicate.
I’m not sure if I have dgraph.type. I see something similar but I’m not sure if it’s it.
I think I deleted ddgraph.type by mistake. It’s possible to add that again?
Could someone from the team check it for me?
Notice if everything is deleted off from a node doing this query will still return the uid unless that behavior was changed somewhere along the way (I mainly stay within the API realm).
Yes you can of course run a mutation and readd the dgraph.type if needed.
And a delete S * * method only deletes the predicated of the declared type.
Another thing that may seem strange from users converting to Dgraph which pertains to the note above is that a node with only a uid does not actually exist in the database. Data only exists as triples so there has to be at least one triple for that node to “exist”. This is different than most any other NoSQL or rdbms that you may be use to where a document/row still exists even if it only contains the id.
I don’t have type set. It is best practice to set dgraph.type according to the types I have in schema when I’m adding new nodes (just set dgraph.type with the type name?)?