Here p1 is assigned 2 different uid’s and p2 is also assigned 2 different uid’s.
For @upsert, if u need to update a node p1 or p2, you should use its uid assigned to p1 or p2 to update accordingly
i misunderstand the @upsert, it should work in this situation:
As such, it’s possible that two concurrently running operations could try to add the same node at the same time
Two concurrently running operations could try to add the same node at the same time. In this case, similar nodes will be assigned different uid’s so there would be no conflict. @upsert can be done using uid only.
Hope it clears your doubt.
ok, i found a situation:
i set replica=3,
i have three dgraph server, i insert data to one server, and i can get results from this server, but i cannot get any results in another two server, why?