Re: [Neo4j] Creating unique relationship using java api

2016-05-18 Thread Sukaant Chaudhary
I think Cypher Query will be better. It will be something like: MATCH (root { name: 'root' })CREATE UNIQUE (root)-[:LOVES]-(someone)RETURN someone Hope this helps! -Sukaant Chaudhary On Wed, May 18, 2016 at 5:05 PM, Cherie Pun wrote:

[Neo4j] Creating unique relationship using java api

2016-05-18 Thread Cherie Pun
Hi, I am wondering is there a way to create a unique relationship from nodeA to nodeB using just the java api? Or must I execute a cypher query for that? Also, if both ways are available, which way is more efficient? Thanks. -- You received this message because you are subscribed to the Google