UNIQUE Constraints for relationship for example Marriage (:Men)-[:MARRIED]-(:Women)


One men should marry one women i want to force this in db how do i implement this using cypher query

Cardinality constraints are not yet implemented, you might see them in an upcoming release.

Meanwhile you can implement that behaviour yourself using a TransactionEventHandler.

1 Like