›Creating Uniqueness Constraints
2.2 · Video Lesson
Creating Uniqueness Constraints
A best practice is to identify a propertyA named value stored on a node or a relationship. for all nodesA 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 constraintsA 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