gremlex icon indicating copy to clipboard operation
gremlex copied to clipboard

No such property: g for class:

Open vishal-h opened this issue 3 years ago • 1 comments

Running Graph.g() |> Graph.v() |> Graph.has("name", "sqldb") |> Client.query gives an error {:error, :script_evaluation_error, "No such property: g for class: Script1348"}

However the same works with raw query Client.query("graph_traversal.V().has('name','sqldb').limit(10).toList()")

This also works from the gremlin console gremlin> graph_traversal.V().has('name','sqldb').limit(50).toList()

JanusGraph - 0.5.3 / apache-tinkerpop-gremlin-console-3.3.1 with serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true }}

However g is not defined in gremlin console as well No such property: g for class: Script1364

vishal-h avatar Apr 04 '22 16:04 vishal-h

Setting g will fix the problem g=graph.traversal() But the support for traversal needs to be added in the code

vishal-h avatar Apr 04 '22 16:04 vishal-h