›Creating Node Key Constraints
2.8 · Video Lesson

Creating Node Key Constraints

A NodeA vertex in a graph. In a property graph it can carry labels and properties. key is a specialized type of constraintA rule the database enforces on every node or relationship with a given label or type, rejecting any write that breaks it. for the propertiesA named value stored on a node or a relationship. of a node. It combines existence with uniqueness.

For example, a Person node's tmdbId value must be unique and exist.