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. 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" 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