Neo4J Cypher - Restrict Only One Relationship for a node

Viewed 714

I am fairly new to Neo4J, and have been trying to build a social network app using Cypher queries as annotated queries in Spring Neo4J.

How can I restrict the user node to have only one relationship with the address node using a cypher command/query or any configuration? Basically, I don't want the user to have multiple address relationships.

2 Answers
Related