4.3 · Lesson

Enforcing Data Models

You have designed a data modelThe labels, relationship types and properties chosen to represent a domain. and tested it against your use cases. But testing only proves the model works when the right data is in the graph. What prevents the wrong data from getting in?

Without enforcement, any application or user with write access can create nodesA vertex in a graph. In a property graph it can carry labels and properties. and relationshipsA named, directed connection between two nodes. Every relationship has a type, a start node and an end node. that violate your model: