How can I limit to only one relationship between two nodes in Neo4j?
问题 I have the following graph: Currently I am using this QUERY to add a relationship between two nodes: MATCH (a:Service),(b:Service) WHERE a.service_id = 'cs2322' and b.service_id = 'ab3232' CREATE (a)-[r:DEPENDENT_ON]->(b) RETURN type(r) However I dont want to have more than one relationship between any two nodes, because I want to visualise my services and the dependency between them, so I cannot have a service being two times dependent on the other. Is there any way I can limit this to force