试图添加一个包含$
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 $")
所以我逃脱了$
符号
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.
尝试基本的转义,效果很好
gremlin> g.V('some-node-id').property("money", "10\"")
==>v[some-node-id]
$
自从海王星发疯以来,逃跑次数增加了一倍
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\\$")
^
我的查询有什么问题?