Constraints and Extending Graph Types
1.3 · Lesson

Constraints and Extending Graph Types

Now that you can define Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. and Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. element types, the next step is enforcing data quality rules and extending your graph type incrementally.

In this lesson, you will add Full definition for property (opens in a new tab)A named value stored on a node or a relationship. 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. to enforce uniqueness and mandatory fields, then use the ADD command to build on an existing graph type without replacing it.