Hi, You can do it using document toJSON() method with fetchPlan passed into it. But I do not know your domain model, so you should try.
On Sun, Mar 9, 2014 at 11:22 AM, Thomas Kennedy <tomais.kenn...@gmail.com>wrote: > Are there any other ways than bringing back the relationships from my edge > relationship and building it in Php or Node? > > Suggestions welcome.. Im just looking for tips on the most efficient way > with OrientDB > > On Friday, 7 March 2014 00:35:09 UTC, Thomas Kennedy wrote: >> >> Hi, >> >> I have a tree structure in orient that I want to transform into the JSON >> format like below. I am using D3.js and would like the data returned in the >> correct format. >> >> Does anybody the correct way to do this in Orient? >> >> TIA >> Tom >> >> Orient Tree >> node1 >> node2 >> node3 >> node4 >> ... >> ...... JSON export data ....... >> { >> node1 >> children[] { >> node2 >> children[] { >> node3 >> } >> } >> node4 >> } >> > -- > > --- > 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. > -- Best regards, Andrey Lomakin. Orient Technologies the Company behind OrientDB -- --- 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.