Can you please provide your complete nodejs code? I was able to use the latest 3.7 gremlin-javascript driver to execute a comparable query against my local gremlin-server populated with the sample modern graph:
const dc = new DriverRemoteConnection('ws://localhost:8182/gremlin');
const g = traversal().withRemote(dc);\
const graphTraversal = await g.V().hasLabel('person').has('age', 29).toList();
console.log(graphTraversal)
The output I received:
[
Vertex {
id: 1,
label: 'person',
properties: { name: [Array], age: [Array] }
}
]
I was also able to use a Neptune notebook to execute a comparable query against a graph loaded with the sample air-routes data:
%%gremlin
g.V().hasLabel('airport').has('code', 'LAX')
Output:
v[13]