1
votes

Using Neo 2.0 through REST API /cypher I'm trying to build a rooted tree like structure.

I currently have an indexed start node, I want to attach a unique path of nodes which may already exist. How can I get cypher to create and set or just update if its already in the database but missing certain properties.

2

2 Answers

0
votes

I have the same issue currently. I'm looking into CREATE UNIQUE might be what you are after.

http://neo4j.com/docs/stable/query-create-unique.html


edited: actually I think CREATE UNIQUE might be deprecated.