I am writing nodes with the label, SocialUser to the neo4j graph. At the first instance, the graph creates duplicates of the node but gives different graph ids for each duplicate. Can someone please help me solve this issue? I can't seem to find the answer i'm looking for
It would be useful to see your cypher command or your code when you are creating your nodes.
One possible cause is that you do not use MERGE command. If you use CREATE command, that will create a separate node each time, with different (internal) ID.
The image I uploaded earlier has the duplicates. The green nodes (SocialUser) are duplicates. They have the same properties but the graph ids are different
The query runs when I use a mobile or a desktop client. When I run it from my desktop it works without creating any duplicates but when I run it from the mobile then the duplicate occurs. Will anyone happen to know why this problem is occurring?
I meant a mobile device. But I just realized it's a major issue. I think running a MERGE on a node that doesn't yet exist in the graph can sometimes create duplicates. Or that isn't the case?
Yes it is possible. If you are running requests in multiple threads the MERGE can create duplicate nodes, when a node with that key doesn't exst. If this is not required, then you should either create a constraint or run it in a single thread.