https://dgraph.io/docs/deploy/fast-data-loading/live-loader/
I have gone through this above Documentation , but I havent understood how internally this upsert and xid works.Can you please breif me about the following things?
- what is this “xid”?Is this Dgraph default or we should define it in our mutation?
2)How live loader is using this xid to merge the nodes?
3)Why my xid value is same as uid blank node value I am using while mutation, after data ingested?
eg:
[
{
"dgraph.type": "Candidate",
"uid": "_:user1",
"userId": "user1",
"WORKED_IN": [
{
"dgraph.type": "Company",
"uid": "_:ABC",
"name": "abc"
}
]
}
]
when i query xids they show the blank node value I used while mutating
4)Is My live loader command correct?
dgraph live -f /home/sample.json -U xid
My understanding:
xid refers to the blanknodes and merges them properly.
5)Is my understanding correct?