it would help the community to respond better if you actually state what 
your problem is.
reading through your post, it is not immediately clear if you need help in 
writing the query, do you need help in optimizing the query which you have 
already written or if you are getting results different from what you 
expected? 
btw, which version of OrientDB are you using?


regards,
~nagu.

On Saturday, May 9, 2015 at 2:05:58 AM UTC+5:30, Topping Bowers wrote:
>
> 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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to