Unable to delete an edge

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?

@jzhu077 Can you please share the steps to reproduce this.

steps to reproduce:

mutate:

{
  set {
    _:test <name> "foo" .
    _:test <region> "bar" .
  }
}
{
  delete {
     <0x1>  <name> "foo" .
  }
}

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.