Skip to content

CHR0067: A node needs exactly one key

A node is identified by exactly one property marked with [Key]. An edge is identified by its type, its source and its target. An edge can additionally have one property marked with [Key], which identifies it among edges of the same type between the same two nodes. The rule reports a node with no key or several keys, and an edge with several keys.

Error

Mark exactly one property of a node with [Key]. Remove all but one [Key] from an edge, or remove them all when there is at most one edge of the type between two nodes.