Thursday 28 January 2016

Orient DB query to find first level friend


Problem:
How to find first level friend in my network in orient db

Solution:
select flatten(distinct(in)) as in from (traverse V.out, E.in from #10:1178 while $depth <=1)
    where @class='Friends'

Where #10:1178 is the record id of the User.

No comments:

Post a Comment