Skip to content

Question mutation delete #91

@koenvanderveen

Description

@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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions