Unique IDs and Constraints
A Neo4j best practice is to use an ID as a unique propertyA named value stored on a node or a relationship. value for each nodeA vertex in a graph. In a property graph it can carry labels and properties..
Unique IDs help ensure duplicate data is not created. When you load data from CSV files, you rely heavily upon the IDs specified in the file. If the IDs in your CSV file are not unique for the same entity (node), you could create duplicate data. You may also have problems loading the data and creating relationshipsA named, directed connection between two nodes. Every relationship has a type, a start node and an end node. between nodes.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register