This works fine!
Would be great to post it somewhere in wiki.
I've spent a whole day trying to figure out what's wrong....
On Tuesday, March 25, 2014 12:53:43 PM UTC-4, Andrey Lomakin wrote:
>
> Hi
> What is result of
> g.v("#21:7").as("person").both("RELATED").loop("person"){it.id.toString()
> != "#16:10" && it.loops < 4}.has('@class','Name').path()
> ?
>
>
> On Tue, Mar 25, 2014 at 6:26 PM, Andrey Yesyev
> <[email protected]<javascript:>
> > wrote:
>
>> Okay, now I'm pretty sure there is a bug here.
>>
>> I changed my queries, instead of checking 'id' value, I'm checking
>> property '@class', it works this way.
>>
>> g.v("#21:7").as("person").both("RELATED").loop("person"){it.object.id !=
>> "#16:10" && it.loops < 4}.filter{it.getProperty('@class')=='Name'}.path()
>>
>> or
>>
>> g.v("#21:7").as("person").both("RELATED").loop("person"){it.object.id !=
>> "#16:10" && it.loops < 4}.has('@class','Name').path()
>>
>> There is a problem with 'id'.
>>
>> --
>>
>> ---
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Best regards,
> Andrey Lomakin.
>
> Orient Technologies
> the Company behind OrientDB
>
>
--
---
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.