-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
kind/questionSomething requiring a response.Something requiring a response.
Description
When creating a node, the new uid is returned to signal a successful creation, but when updating, there is no indication that things have been successful by returning the changed uid. I'm not sure how the expected result should look, but it would be in line with node creation to have the key and value of the uids object to be the existing uid.
Fake Uid was used (0x1234), but the point is valid.
-
What version of Dgraph are you using?
v1.0.5-dev
Commit: e6c3e76 -
Have you tried reproducing the issue with latest release?
Most current -
What is the hardware spec (RAM, OS)?
Docker -
Steps to reproduce the issue (command/config used to run Dgraph).
Taken from the tour (also tested from the tour and received same output).
Schema:
name: string @index(term) @lang .
{
set {
_:michael <name> "Michael" .
}
}
{
set {
<0x1234> <name> "Other name" .
}
}
- Expected behaviour and actual result.
Expected result:
{
"data": {
"code": "Success",
"message": "Done",
"uids": {
"0x1234": "0x1234"
}
},
"extensions": {
"server_latency": {
"parsing_ns": 9130,
"processing_ns": 11763538
},
"txn": {
"start_ts": 170022,
"commit_ts": 170023,
"lin_read": {
"ids": {
"1": 5792
}
}
}
}
}
Actual result:
{
"data": {
"code": "Success",
"message": "Done",
"uids": {}
},
"extensions": {
"server_latency": {
"parsing_ns": 9130,
"processing_ns": 11763538
},
"txn": {
"start_ts": 170022,
"commit_ts": 170023,
"lin_read": {
"ids": {
"1": 5792
}
}
}
}
}
Metadata
Metadata
Assignees
Labels
kind/questionSomething requiring a response.Something requiring a response.