Re: help traversal and fetching child

27 views
Skip to first unread message
Message has been deleted

alessand...@gmail.com

unread,
Jul 20, 2016, 8:29:57 AM7/20/16
to OrientDB
Hi,
I created this graph


and I used this query 


select from asset where out("E").out("E").out("E").name contains "person 1" and out("E").in("E").in("E").name contains "app 1"



Hope it helps



parvat

unread,
Jul 20, 2016, 9:02:56 AM7/20/16
to OrientDB
This helped me one more thing if the asset is have some more child assets how can i get

alessand...@gmail.com

unread,
Jul 20, 2016, 9:10:44 AM7/20/16
to OrientDB
Could you post a graph as example for this situation ?

parvat

unread,
Jul 20, 2016, 10:23:21 AM7/20/16
to OrientDB
attached from the above query which u provided i am able to get the asset of one level if i want another level of those asset how can i get
Untitled.png

alessand...@gmail.com

unread,
Jul 20, 2016, 11:21:36 AM7/20/16
to OrientDB
I connected two new asset as you can see in the picture


and I used this query

traverse out("has") from (select from asset where out("E").out("E").out("E").name contains "person 1" and out("E").in("E").in("E").name contains "app 1")



Reply all
Reply to author
Forward
Message has been deleted
0 new messages