Im trying to leamlin with AWS neptfdsune lambda in javascript.
the problem is i dont know how to import "has" & "both" in the above query? or is there any other way to do this?
When you have an "anonymous" traversal (not connected to other steps by a dot) you need to prefix the step with __.
(double under bar). So your query becomes:
g.V().
has("person", "first_name", fromName).
until(__.has("person", "first_name", toName)).
repeat(__.both("friends").simplePath() )
In case you need help finding the common imports for the Gremlin JavaScript client, some key ones are listed here: https://tinkerpop.apache.org/docs/current/reference/#gremlin-javascript-imports