Moved from GitHub pydgraph/91
Posted by koenvanderveen:
I am using pydgraph 2.0.2 and dgraph 1.1.0. I have a graph with a node with uid “0x2e” and name “Charlie”. When I run
del_obj = {"uid": "0x2e"}
txn = client.txn();
try:
txn.mutate(del_obj=del_obj)
txn.commit()
finally:
txn.discard()
The node is not deleted. But when I add the name:
del_obj = {"uid": "0x2e", "name": "Charlie"}
txn = client.txn();
try:
txn.mutate(del_obj=del_obj)
txn.commit()
finally:
txn.discard()
The node is deleted. Is this expected behaviour ? If so, is there a way to expand a node without the new type system?