jzhu077
(Jzhu077)
January 14, 2018, 11:22pm
1
dgraph version V1.0.0
"data": {
"UsLNzNdmKI": [
{
"uid": "0x17700000000",
"name": "foo",
"region": "bar"
}
]
}
I tried to delete the edge name
via mutate in dgraph web UI:
{
delete {
<0x17700000000> <name> "foo" .
}
}
error: rpc error: code = Aborted desc = Transaction has been aborted. Please retry.
Have I done something wrong?
janardhan
(janardhan reddy)
January 14, 2018, 11:28pm
2
@jzhu077 Can you please share the steps to reproduce this.
jzhu077
(Jzhu077)
January 14, 2018, 11:38pm
3
steps to reproduce:
mutate:
{
set {
_:test <name> "foo" .
_:test <region> "bar" .
}
}
{
delete {
<0x1> <name> "foo" .
}
}
janardhan
(janardhan reddy)
January 14, 2018, 11:40pm
4
You should use <0x1> <name> *
syntax to delete edges of scalar non list type. You can use transactions if you want to delete the name edge only when the value is “foo”.
We changed the client in master to display better error message instead of saying aborted.
system
(system)
Closed
February 13, 2018, 11:41pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.