Hi Mihai, exactly, the two methods are not equivalent in how they return results. In case 2 you can repliace the prefix with a custom one, using AS <alias>
Thanks Luigi 2015-12-02 12:49 GMT+01:00 Mihai Ocneanu <mihai.ocne...@gmail.com>: > Hi Mihai, >> >> you have two solutions: >> 1. use fetchplan: doc.toJson("fetchPlan:*:3") >> >> 2, use UNWIND: >> >> select *, items.* from (select *, out('E_SomeEdge') as items from ? >> UNWIND items) >> >> Luigi > > > Thanks for the ideas, Luigi. > > First method works perfectly and it does what I was looking for. > > The second method will also expand/unwind the edges, but if you have for > instance 2 edges you are unwinding, then the query will give back 2 > results, with the initial vertex the same, and the expanded part different, > for each unwinded vertex. Also, in this case, the atribute names for the > unwinded vertex are concatenated with the alias, such as ' itemsname '. > > -- > > --- > 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-database+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- 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-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.