Trying to update properties if it exists using gremlin query I am getting error as Cannot find name 'has'
and the same query runs fine in Neptune notebook. But for the same thing in node.js I am getting error at "has"
Below is the query. What am I missing here?
Graph.V(Id).hasLabel('test').optional(has('nameProperty').property(single,'nameProperty', 'value'))