neo4j

13 views
Skip to first unread message

Soumya George

unread,
Mar 24, 2015, 7:56:37 PM3/24/15
to ne...@googlegroups.com
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

Sukaant Chaudhary

unread,
Mar 24, 2015, 10:54:10 PM3/24/15
to ne...@googlegroups.com
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


--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Hunger

unread,
Mar 26, 2015, 11:13:31 AM3/26/15
to ne...@googlegroups.com
Not sure what you're asking, perhaps this can help you.


Michael

Reply all
Reply to author
Forward
0 new messages