My mutation data
[
{
"dgraph.type": "Candidate",
"uid": "_:NCS_Candidate",
"userId": "NCS",
"HAS_SKILL": [
{
"dgraph.type": "Skill",
"uid": "_:UX\\\\UI",
"name": "UX\\UI"
},
{
"dgraph.type": "Skill",
"uid": "_:UX\\\\UI",
"name": "UX\\\\UI"
},
{
"dgraph.type": "Skill",
"uid": "_:UX__UI",
"name": "UX\\UI"
}
]
}
]
]
I have used the below live loader command
dgraph live -f /home/sample.json -U xid
when I load the file for first time , I see 2 skills which I expected
When I load the same file for 2nd time , I see 3 skills
each time I load this file , I see extra skill
output:
{
"data": {
"q": [
{
"userId": "NCS",
"uid": "0x3a349248",
"HAS_SKILL": [
{
"name": "UX\\UI",
"uid": "0x3a349249",
"xid": "_:UX\\\\UI"
},
{
"name": "UX\\UI",
"uid": "0x3a34924a",
"xid": "_:UX__UI"
},
{
"name": "UX\\\\UI",
"uid": "0x3a66eceb",
"xid": "_:UX\\\\UI"
},
{
"name": "UX\\\\UI",
"uid": "0x3a9ace2c",
"xid": "_:UX\\\\UI"
}
]
}
]
},
"extensions": {
"server_latency": {
"parsing_ns": 171495,
"processing_ns": 913917,
"encoding_ns": 62188,
"assign_timestamp_ns": 1104088,
"total_ns": 2346467
},
"txn": {
"start_ts": 11301657
},
"metrics": {
"num_uids": {
"HAS_SKILL": 1,
"_total": 20,
"name": 4,
"pk": 5,
"uid": 5,
"userId": 1,
"xid": 4
}
}
}
}
I have given same uid with 2 different name values, so the name should overWrite but instead I see duplicate node each time.
Why is this happening?
What is difference between xid and uid?
Even i give same uid value why i am seeing different uid numbers in the output?