Hi Leonid, I created this simple DB to try the query and I think that the structure it's similar than yours
<https://lh3.googleusercontent.com/-9OMtLlS_quc/VqazYPMUX4I/AAAAAAAAAAk/pjliNTBvtmQ/s1600/Img.png> In Gremlin the query I used to obtain the start_id, tail_id and tail_class it's this: g.V.has('@class','MyClass').as('start_id').out('MyEdge').as('tail_id').( '@class').as('tail_class').select{it.myid}{it.myid}{it} and here's the output: [start_id:1, tail_id:2, tail_class:MyClass] [start_id:2, tail_id:3, tail_class:MyClass] Hope it helps -- --- 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.
