Cypher Create Unique use of properties

34 views
Skip to first unread message

kantube

unread,
Sep 30, 2012, 6:55:43 PM9/30/12
to ne...@googlegroups.com
When doing a Cypher Create Unique the Properties are also tested for uniqueness? 

for example:

START left=node(1), right=node(3)
CREATE UNIQUE left-[r:KNOWS {name : "jack"}]->right
RETURN r




START left=node(1), right=node(3)
CREATE UNIQUE left-[r:KNOWS {name : "jill"}]->right
RETURN r




would create two relationships.

this is not an issue but it does function a little different than the REST create. 

is my understanding correct on this?

Michael Hunger

unread,
Oct 1, 2012, 3:49:12 AM10/1/12
to ne...@googlegroups.com
Yes they are checked

If you don't want this just set the propswith SET r.name = … afterwards

Sent from mobile device
--
 
 
Reply all
Reply to author
Forward
0 new messages