I have a database where vertices *Vi* are linked to vertex *A* or *B* or
*both* via edge *'hasAspect*'.
I want to get all the vertices that are linked to both *A* and *B*. The
only way I found is (having A and B being @rids):
SELECT FROM V WHERE out('hasAspect') CONTAINS (@rid = A) AND out('hasAspect'
) CONTAINS (@rid = B)
Is there a more elegant way to achieve the same result? Knowing that it
could easily become ugly if I have to filter for more than only A and B?
(C, D, E, F...)
Thank you
--
---
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.