Hi Soumya,
I'm not sure but hope the following query will help you:

MATCH
(root_node1:neo4j)-[:GRAPH_RELATION]->(root_node2:graph)-[:DATABASE_RELATION]->(root_node3:database)
RETURN root_node3, root_node2, root_node1;

-Sukaant Chaudhary
<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>

On Tue, Mar 24, 2015 at 2:27 PM, Soumya George <[email protected]>
wrote:

> i have a neo4j database with structure given below.
>
> root_node2->neo4j
> root_node2->neo4j graph
> root_node3->neo4j graph database
>
> and if i give a list of values which is *populated dynamically* like
> "neo4j graph database" , i want to check for these node sequence i.e.
> neo4j->graph->database , so that i want to get output  as:
>
> neo4j graph database -> root_node3
> neo4j graph-> root_node3, root_node2
> neo4j -> root_node3, root_node2, root_node1.
>
>
> pls help
>
> --
> 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 [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to