Re: [orientdb] proper way to add extra information to documents (ODocument), Java API, oDB 2.1.2

2015-12-02 Thread Luigi Dell'Aquila
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 2015-12-02 10:58 GMT+01:00 Mihai Ocneanu : > Hello, > > I have a vertex with some

[orientdb] proper way to add extra information to documents (ODocument), Java API, oDB 2.1.2

2015-12-02 Thread Mihai Ocneanu
Hello, I have a vertex with some attributes and some edges, and I need to retrive it back as JSON, with the extra requirement that I also want to expand some edges. Code is something like this: OSQLSynchQuery query = new OSQLSynchQuery<>("select from ? "); List result =