Traverse returning from object on the result list?!

11 views
Skip to first unread message

syshex

unread,
Jan 29, 2015, 9:44:08 AM1/29/15
to orient-...@googlegroups.com
I have a structure something like this :

(Employer)<------Hiredby------ (Contract) -----Contracted----->(Company)

The overall idea of the next query is to get all Contracts  where a specific company was hired.  So, assume #12.25345 to be a company:

traverse
     
in("Contracted")
 
from #12:25345
 
while
     
$depth <= 1
  limit
-1


This particular query returns :  
- the #12:25345 Company itself
- All contracts

Is it supposed to return the Company itself? Don't think that makes much sense. 

Also did a few tests with the $depth bit, which also returned some interesting results : 

with 

      $depth = 0

it returns only the  #12:25345 company.

with 

      $depth = 1

it returns nothing. 

Reply all
Reply to author
Forward
0 new messages