2.2 · Lesson

Unique IDs and Constraints

A Neo4j best practice is to use an ID as a unique Full definition for property (opens in a new tab)A named value stored on a node or a relationship. value for each Full definition for node (opens in a new tab)A 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 Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. between nodes.