Re: [Neo4j] How to create OR condition in MATCH

30 views
Skip to first unread message

Aseem Kishore

unread,
Nov 17, 2012, 5:38:08 PM11/17/12
to Neo4j Discussion
I could be wrong, but I believe | support was added in 1.7 or 1.8, not in 1.6.


On Wed, Nov 14, 2012 at 9:13 AM, Freddy Racin <fredd...@gmail.com> wrote:
Hi

I need to retrieve all nodes from a start node, all nodes are connected with relation type FOLDER or CONTENT (a folder has a list of contents or folders). If I use "|" in clause MATCH i have an error... 

Error executing statement START n=node({0}) MATCH (n)-[r1:CONTENT|FOLDER*]->(storeNode) RETURN storeNode; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: Error executing statement START n=node({0}) MATCH (n)-[:CONTENT|FOLDER*]->(storeNode) RETURN storeNode; nested exception is org.neo4j.cypher.SyntaxException: `]' expected but `|' found

I use spring-data-neo4j 2.0.1.RELEASE , neo4j-cypher 1.6.M02 and neo4j-rest-graphdb 1.6.M02 lib.

Somebody can I help me?

--
 
 

Reply all
Reply to author
Forward
0 new messages