›Creating a Node Key Constraint
2.9 · Challenge

Creating a Node Key Constraint

In our Movie data modelThe labels, relationship types and properties chosen to represent a domain., we want to ensure every Person in the graph has both name and url propertiesA named value stored on a node or a relationship. defined and also that the two properties combined are unique across all nodesA 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: