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
it returns only the #12:25345 company.