sure

create constraint on (u:User) assert u.email is unique;

merge (u:User {email:"[email protected]"}) ON CREATE SET u.name = "Ray"



On Wed, Jun 24, 2015 at 2:22 PM, Ray <[email protected]> wrote:

> Is there a way to create a unique node.
> To make is possible that there exists 1 and only 1 Node with the label
> "user" and the property email="[email protected]".
>
> And only one incoming relationship with the label: "OwnedBy" of a Node x.
>
>
> and after creation if I try to create the same node/relationship with a
> normal query I get an exception?
>
> --
> 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