I'm on the Gremlin console and connected to an AWS Neptune DB
g.V().hasLabel('Risk').toList()
provides the expected results, but when i try to assign the results to a variable
risks = g.V().hasLabel('Risk').toList()
I get the message below - the token recognition error is clearly throwing on the variable name because when i change the variable name the position and "at" part of the message changes.
{"requestId":"650d7c4b-44d1-43f8-b9a3-fbf085cc3ead","code":"MalformedQueryException","detailedMessage":"Query parsing failed at line 1, character position at 3, error message : token recognition error at: 'ks'"}
I tried the same thing on a Tinkerpop database and the variable assignment works. What am I missing?