OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<>("select from ? ");
List<ODocument> result = graphFactory.getDatabase().command(query).execute(myId);
result.get(0).toJson();
select *, expand(out('E_SomeEdge')) as items from ?
I'll end up with escaped quotation marks for the expanded bit, due to the double JSON conversion - which then I also have to clean up....
To me, this probably means I may not be using the API as intended.
What's the proper way to achieve what I'm after?
Thanks,
Mihai
--
---
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/d/optout.
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
--