i using gremlin query search vertices given vertex.
v.both("edgelabel").has("propertykey", "27826345");
this query returning bunch of vertices. creating edges 'v' returned vertices simple iterator.
now question is:
is there process/query style available through can search vertices , create edges in same query ?
i have tried 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 using gremlin-groovy scriptengine execute query java class.
thank in advance.
in gremlin 2.3.0, there 3 new steps:
linkin linkout linkboth
please see gremlindocs (http://gremlindocs.com) more information on how use them.
http://gremlindocs.com/#transform/linkboth-in-out
note these pipes yield sideeffect (the edge generated) can cap pipe if need edge.
Comments
Post a Comment