I see, Thank you for clarification !.
On Mon, Sep 1, 2014 at 8:51 PM, Chinmay Shrikhande < [email protected]> wrote: > Hi Andrey, > > Thank you, for your inputs!!! > > I tried the above approach but it still returns me the virtual/abstract > rid. > I just changed it a little bit and it worked. Following is the ofunction: > > var content = request.getContent(); > var gdb = orient.getGraph(); > var rid = gdb.command("sql","create vertex user content " + content); > gdb.commit(); > return rid; > > I guess calling orient.getGraph() twice gives two different instances. > > Thanks again for your suggestions!!! > > Thanks & Regards, > Chinmay Shrikhande > > On Monday, September 1, 2014 11:03:01 PM UTC+5:30, Andrey Lomakin wrote: > >> HI, >> You did not commit tx which is automatically started, >> Is it ok if you do: >> >> var content = request.getContent(); >> var rid = orient.getGraph().command("sql","create vertex user content " >> + content); >> orient.getGraph().commit(); >> return rid; >> >> >> >> >> >> On Mon, Sep 1, 2014 at 5:26 PM, Chinmay Shrikhande < >> [email protected]> wrote: >> >>> Hello, >>> >>> Please can any one help on this. >>> >>> Thanks & Regards, >>> Chinmay Shrikhande >>> >>> >>> On Friday, August 29, 2014 9:49:55 PM UTC+5:30, Chinmay Shrikhande wrote: >>>> >>>> Hi, >>>> >>>> I am migrating from version 1.6 to 1.7.8. In version 1.6 to create a >>>> vertex 'user' following is the ofunction layout used: >>>> >>>> var content = request.getContent(); >>>> return gdb.command("create vertex user content " + content); >>>> >>>> This function would return me the actual vertex rid of the user created. >>>> >>>> Modified the above ofunction to be compatiable with version 1.7.8 >>>> >>>> var content = request.getContent(); >>>> orient.getGraph().command("sql","create vertex user content " + >>>> content); >>>> >>>> The above function when executed gives me virtual rid of the user >>>> created (i.e something like #28:-2 ) >>>> >>>> I need the rid of the actual record created. >>>> Is there any configuration changes or some other way to create vertex >>>> so it will return me the rid of the newly created vertex. >>>> >>>> Please suggest on this. >>>> >>>> Thanks & Regards, >>>> Chinmay Shrikhande >>>> >>>> >>>> -- >>> >>> --- >>> 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. >>> >> >> >> >> -- >> 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
