I am using gremlin query to search for vertices from a given vertex.
v.both("edgeLabel").has("propertykey", "27826345");
This query is returning a bunch of vertices. Now I am creating edges from 'v' to all those returned vertices by simple iterator.
Now my question is:
Is there any process/query style available through which I can search for those vertices and create edges in the same query ?
I have already tried this query:
v.both('edgeLabel').has('propertykey','27826345').gather(){g.addEdge(v,it,'TEST_LABEL')}
But I'm getting error :
No signature of method: groovy.lang.MissingMethodException.addEdge()
I am currently using Gremlin-Groovy ScriptEngine to execute my query from a Java class.
Thank you in Advance.