This is very helpful, but how do you know the properties/functions available on 'orient', 'g', and 'b' (i.e. command, commit, getId, etc.)? I can't find this documented anywhere, short of a few examples here and there (some of which conflict with each other)? Also, I'm assuming that this is the syntax for a custom JS function?
On Mon, Jun 6, 2016 at 9:18 AM, <[email protected]> wrote: > Hi Eric, > I hope that this javascript function could be helpful for you. > > var g=orient.getGraph(); > var b=g.command("sql","INSERT INTO VMenu CONTENT {'Main':'PM', > 'Timeout':'PT', 'Error':'PE'} RETURN @rid"); > g.commit(); > var query="update "+ b.getId().toString() + " set newProperty='NP'"; > g.command("sql",query); > > Let me know. > > Best regards, > Alessandro > > -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "OrientDB" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/orient-database/en8zNxWtC88/unsubscribe. > To unsubscribe from this group and all its topics, 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.
