This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Neo4j and the fly likes using In clause in @query spring neo4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » Neo4j
Bookmark "using In clause in @query spring neo4j" Watch "using In clause in @query spring neo4j" New topic

using In clause in @query spring neo4j

Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
Hi All,

can some one provide me some example for using cypher query with in clause.

i tried using like below(even tried to use array of String also).

but it always fails with below exception
this is working properly if i am trying to use single value as

Bill Gorder

Joined: Mar 07, 2010
Posts: 1681

Not sure but seems the in is not allowed in the where clause. Does something like this work (if you put the Spring part aside). rel1 and rel2 should be the relationships you want to follow.

Also it looks like you are using a pretty old version of cypher. You might consider upgrading.

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: using In clause in @query spring neo4j