Hey Nagaraja and Julie, I decided to collect use cases & queries form users, like your case:
https://github.com/orientechnologies/orientdb-docs/wiki/Query-Examples. Anybody wants to share tips/tricks with real use cases, this is the page to edit ;-) Lvc@ On 13 April 2015 at 02:40, Julie Frund <[email protected]> wrote: > Thanks so much! I think that does the trick! :) > > > On Sunday, April 12, 2015 at 4:17:27 PM UTC-4, nagaraja sosale ramaswamy > wrote: >> >> 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. > -- Best Regards, Luca Garulli CEO at Orient Technologies LTD the Company behind OrientDB http://about.me/luca.garulli -- --- 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.
