select intersect(out('member_of').org_name) from Person where name in 
["nagu", "rohit"]

seems to get the job done for me.


On Sunday, April 12, 2015 at 9:39:48 PM UTC+5:30, Julie Frund wrote:
>
> I'm starting to get my head wrapped around querying a graph rather than a 
> relational DB, but I'm a little stuck on how to ask the graph what 
> relationships exist between two vertices.  In my case I have two known 
> 'Person' nodes each connected via a 'member_of' edge to a shared 
> 'Organization' node.  Each 'Person' is also a 'member_of' other 
> 'Organization's.  
>
> How do I get just the shared organization?  Hopefully this is simple and 
> I'm only over-complicating it my head.  Can someone point me in the right 
> direction?  
>
> Thanks in advance! 
>

-- 

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