Set the variable in sideEffect:
g.addVertex().sideEffect{v = it; println v.id;}
If you check the DB console, there should be printed id of added vertex
(like "#9:-2").
Dne sobota 12. září 2015 17:30:54 UTC+2 Valery T napsal(a):
>
> I am trying to run the following query in Studio:
> v1 = g.addVertex()
> The Studio produces error:
> com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException:
> Cannot find a command executor for the command request: sql.v1 =
> g.addVertex()
>
--
---
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.