Okay, I think it is starting to make sense. If my understanding is correct, 
when you are within the containsall expression, you are 'working with' each 
person record from the current 'children' rid collection? So when you are 
checking the 'married' property, it is actually checking 
children[0].married, then children[1].married, etc?

I still can't get it to run in my use case though. Perhaps you could take a 
look at my stackoverflow question: 
https://stackoverflow.com/questions/31715541/how-to-write-a-query-that-filters-traversed-elements

On Thursday, 30 July 2015 16:00:56 UTC+8, [email protected] wrote:
>
> Hi,
> This example should help :
>
> select from Person where children contains ( married = true )
> // select people who have at least one child with married = true
>
> select from Person where children containsAll ( married = true )
> // select people who have all the children with married = true
>
> Regards,
> Alessandro
>
>

-- 

--- 
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