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, <rahul.aggar...@daffodilsw.com> wrote:

>
> 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 chaining path starting from id(A)=10 ending upto the length of
> array.Then I want to add some number that the array contains with each C
> type node.
>
>
> Please tell me how can I do this. Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to