Hi,
try this SQLquery select * from (select 
expand(out('Specializes').out('Accepts') from Specialty)) where name='aetna'

Bye, Alessandro

Il giorno venerdì 8 maggio 2015 22:35:58 UTC+2, Topping Bowers ha scritto:
>
> Hello! I'm trying to do a query that says "select all vertexes where there 
> is a vertex through a relationship that has an attribute that equals foo"
>
> specifically I'm trying this:
>
> select from Specialty where both('Specializes').both('Accepts').name = 
> 'aetna'  
>
> The graph looks like:
>
> Specialty --- [Specializes] ---> Contract --- [Accepts] ---> InsurancePlan
>
>
> Where Insurance plan has a name. So I want to find "all specialties that 
> have a relationship to an InsurancePlan with the name 'aetna'
>
> I realize I could start at the InsurancePlan, but I have reasons for 
> starting at Specialty because this will be part of a bigger query. Can I 
> not use the attributes to filter?
>
> Topper
>

-- 

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