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 [email protected] https://lists.neo4j.org/mailman/listinfo/user

