1.1 · Video Lesson

Constraints and Indexes in Neo4j

A Full 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. is implemented internally as an index and is used to constrain what is added to the graph. There are three types of constraints you can define: