cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Single relationship constraint

(nodeA)-[relation]->(nodeB),

In the above example, I want to restrict to have only one relation between instance of nodeA & nodeB.

How can this be done?

Thanks in advance.

1 REPLY 1

Hi @pritamkurunkar - there is no constraint or other simple way to enforce this in the database itself. What is the use case that led you to this requirement?