Query graph

33 views
Skip to first unread message

Andrey Yesyev

unread,
Feb 25, 2014, 4:10:37 PM2/25/14
to orient-...@googlegroups.com
Hi there,

I have a simple graph


I need to find Item with name="test" which has in_HAS from Case with name="case1".
How would you do this?

Thanks!

-Andrey

Riccardo Tasso

unread,
Feb 25, 2014, 4:20:06 PM2/25/14
to orient-...@googlegroups.com
In OSQL I would ask for:

SELECT
FROM Item
WHERE name == 'test' AND in('has').name contains 'name1'

Riccardo


--
 
---
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-databa...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andrey Yesyev

unread,
Feb 25, 2014, 4:51:29 PM2/25/14
to orient-...@googlegroups.com
Thanks Riccardo!


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/_PeI5Xl5S0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages