Tried to add a property that contains $
gremlin> g.V('some-node-id').property("money", "10 $")
groovysh_parse: 1: illegal string body character after dollar sign;
solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 1, column 72.
').property("money", "10 $")
So I escaped the $ symbol
gremlin> g.V('some-node-id').property("money", "10\$")
{"requestId":"xyz","code":"MalformedQueryException","detailedMessage":"Query parsing failed at line 1, character position at X, error message : token recognition error at: '$'"}
Type ':help' or ':h' for help.
Try a basic escaping, that worked fine
gremlin> g.V('some-node-id').property("money", "10\"")
==>v[some-node-id]
Double the escape $ since Neptune has gone crazy
gremlin> g.V('some-node-id').property("money", "10\\$")
groovysh_parse: 1: illegal string body character after dollar sign;
solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 1, column 72.
').property("money", "10\\$")
^
Whats wrong in my query?
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/f3d9d28c-3914-480b-9ccc-52c997206561%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4o6UoUFriqO9oyQ85Z-EQF4S5eUVdJyEm2-cLVruuGpbw%40mail.gmail.com.
gremlin> g.addV("Animal").property(id,"simba")
==>v[simba]
gremlin> g.V('simba').property('money','$123')
==>v[simba]
gremlin> g.V().has('money','$123')
==>v[simba]
gremlin> g.V('simba').property('new_money','123 $10')
==>v[simba]