Moved from GitHub pydgraph/124
Posted by dtrckd:
Hello,
I am using the following code to do a mutation that should remove one field, and modify another one:
_mu = {
'uid': o['uid']
'Post.title': None,
'Tension.title': o['Post.title']
}
mu = pydgraph.Mutation(set_json=json.dumps(_mu).encode('utf8))
txn.mutate(mu)
The mutation successfully added the field Tension.title
but Post.title
is not deleted and instead it is set with the value “null”.
According to the doc, the field should have been deleted.
Am I missing something or it is a normal behavior?
pydgraph==2.0.3
Dgraph version : v1.2.1
Dgraph SHA-256 : 3f18ff84570b2944f4d75f6f508d55d902715c7ca2310799cc2991064eb046f8
Commit SHA-1 : ddcda9296
Commit timestamp : 2020-02-06 15:31:05 -0800
Branch : HEAD
Go version : go1.13.5