Gremlin query in Studio produces error

21 views
Skip to first unread message

Valery T

unread,
Sep 12, 2015, 11:30:54 AM9/12/15
to OrientDB
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()

Jan Plaček

unread,
Sep 12, 2015, 12:22:42 PM9/12/15
to OrientDB
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):

Valery T

unread,
Sep 12, 2015, 10:44:23 PM9/12/15
to orient-...@googlegroups.com
Thank you!

--

---
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/7kD_VKEzceU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages