›Creating Uniqueness Constraints
2.2 · Video Lesson
Creating Uniqueness Constraints
A best practice is to identify a iFull definition for property (opens in a new tab)A named value stored on a node or a relationship. for all iFull definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. in the graph that make them unique. In our movie graph, these iFull definition for constraint (opens in a new tab)A rule the database enforces on every node or relationship with a given label or type, rejecting any write that breaks it. are:
Movienodes use movieId.Personnodes use tmdbId.Usernodes use userId.Genrenodes use name.
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