No it is not. I think it could be a little bit confusing if equality operator has contains behavior for collections.
Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014/1/14 SHak <[email protected]> > Thanks. I see now the advantage of *out('translatesTo')*. But I don't > understand the purpose of "*contains*". I tried with *out('is').name = > 'Ar-sy' *and it doesn't return the data. I assume because *out('is')* is > a collection but I thought that *=* would work on anything including > collections. > > On Tuesday, January 14, 2014 3:20:36 PM UTC+2, Artem Orobets wrote: > >> I think this one would be better >> select from (traverse out('translatesTo') from (select from Label where >> name = 'Hello')) where out('is').name contains 'Ar-sy' >> >> Traversing only by out('translatesTo') is faster than traversing and than >> filtering. Moreover if you have another type of edges between labels they >> also will be traversed. >> >> Best regards, >> Artem Orobets >> >> * Orient Technologiesthe Company behind OrientDB* >> >> >> 2014/1/14 SHak <[email protected]> >> >>> So, I made some progress. The following query returns what I need. >>> What do you think? can it be better? >>> >>> SELECT FROM (TRAVERSE * FROM (SELECT FROM label WHERE name like >>> '%Hello%') while @class = 'Label') where out_is.name ='Ar-sy'; >>> >>> >>> -- >>> >>> --- >>> 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/groups/opt_out. >>> >> >> -- > > --- > 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/groups/opt_out. > -- --- 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/groups/opt_out.
