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
<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>

On Wed, May 18, 2016 at 5:05 PM, Cherie Pun <[email protected]> wrote:

> 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 Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to