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')
Gremlin standards compliance in Amazon Neptune - Amazon Neptune
Overview of differences between the Neptune and TinkerPop implementations of Gremlin.
Jump to solution
2 Replies
Solution
spmallette
spmallette14mo ago
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')
Gremlin standards compliance in Amazon Neptune - Amazon Neptune
Overview of differences between the Neptune and TinkerPop implementations of Gremlin.
vuon cham chi
vuon cham chi14mo ago
ah, thanks much for your quick response.
Want results from more Discord servers?
Add your server