Hi there, Cypher does not let you address the ID directly (yet) in the where parts. Michael, Andres, WDYT of supporting it?
Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Wed, Jul 20, 2011 at 3:03 AM, Jingex <gulei...@zju.edu.cn> wrote: > Hi all, > > In a case we have several people, name:"Mike","Jack","John", > as their node id are:1,2,3 > We want to find out all the relationships between them. > > Use Cypher, the query like this: > > start n = (1,2,3) > mathch (n)-[r]-(people) > where people.name = "Mike" or people.name = "Jack" or people.name = "John" > return n.name,r.type,people.name > > So, is it possible to use node ID as filter in the WHERE part, just as START > part? Such as where people.id = (1,2,3)? Or return all the (people) related > with (n), than filter the ID in return results? > IN and BETWEEN are usefull operators, especially when you have a long list. > As far as I know, now I have to use a lot of "or" to find out all the > possible? > > Thanks > Alfred > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Best-way-to-find-all-the-relationships-between-nodes-which-in-a-list-tp3184169p3184169.html > Sent from the Neo4J Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user