Re: [Neo4j] Getting Chain of related nodes and perform operation on one type of node using neo4j query

2014-09-19 Thread Michael Hunger
with size({data}) as len match path = (a:A)-[:FOO]->(b:B)-[:BAR*5]->(c:C) // len = 5 where length(path) = len + 2 foreach (idx in range(0,len-1) | SET nodes(path)[2+idx] = {data}[idx] ) On Thu, Sep 18, 2014 at 11:21 AM, wrote: > > I am using node js(for rest API) with neo4j. I need to get a ch

[Neo4j] Getting Chain of related nodes and perform operation on one type of node using neo4j query

2014-09-19 Thread rahul . aggarwal
I am using node js(for rest API) with neo4j. I need to get a chain of relationships upto 5 level using neo4j query and perform an operation on particular nodes.In detail, I have a relationship(A-[]->B-[]->C) and an array that contains 5 numbers. I want to fetch all the B type nodes along the