Creating a Node Key Constraint
2.9 · Challenge

Creating a Node Key Constraint

In our Movie Full definition for data model (opens in a new tab)The labels, relationship types and properties chosen to represent a domain., we want to ensure every Person in the graph has both name and url Full definition for property (opens in a new tab)A named value stored on a node or a relationship. defined and also that the two properties combined are unique across all Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties..

Recall from earlier in this course that there are two Person nodes with the same name: