Use the "edge" transformer in ETL, not LINK. Best Regards,
Founder & CEO OrientDB <http://orientdb.com/> On 28 July 2015 at 16:27, <[email protected]> wrote: > Hi, > I did not manage to create a bi-directional lightweight with .json > configuration by using ETL. > If you want you can create the link from the class A to the class B using > ETL and after you can use this javascript function > to create the edges from B to A. > > var g=orient.getGraph(); > var b=g.command('sql','select from in_ReferenceOfA'); > for(i=0;i<b.length;i++){ > rid_out=b[i].getProperty('out').getId().toString(); > rid_in =b[i].getProperty('in').getId().toString(); > g.command('sql',"create edge out_ReferenceOfB from " + rid_in + " to "+ > rid_out); > } > > > Regards, > Alessandro > > -- > > --- > 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. > -- --- 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.
