filter lambda in remote console

hi all, i’m trying to do filter on remote console to neptune server but keep getting MalformedQueryException for query like g.V().filter { it.get().label() == ‘person}. Advices are appreciated. TIA
Solution
Neptune does not support closures/lambdas: https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-differences.html#feature-gremlin-differences-lambda you would have to use pure Gremlin steps, thus g.V().hasLabel('person')
Overview of differences between the Neptune and TinkerPop implementations of Gremlin.
Was this page helpful?