Is there a way to update an existing node without inserting a new one if the node doesn’t exist?
If I use regular mutation with set and the triple <0x123ef> <User.name> "Spinelsun", then if 0x123ef doesn’t exist it will be created. The same is true for upsert.
I want to get an error if I try to update a node that doesn’t exist.
Also, the same request applies for deleting a node.
ayy… Sorry. Just noticed my mistake. Problem with filtering on uid is that uid always exist. It should be filtered not on uid but a different predicate. So in query when querying eq(myID, "123") will work fine. Or if we need uid, then add additional filter or directive to validate the node exists. @cascade or @filter(has(dgraph.type)) should be enough. I fixed and edited the query above.