无法解释 Gremlin 查询:查询解析失败。 "single and double quotes are not parsing"

Failed to interpret Gremlin query: Query parsing failed. "single and double quotes are not parsing"

无法解释 Gremlin 查询:查询解析失败。 “不解析单引号和双引号”

g.V('a48543e9-d527-4928-b045-71da15a76bfe').property(single, 'title', '{'fr': '', 'en': 'Title Edit 02'}')

获取错误:

{
 "detailedMessage": "Failed to interpret Gremlin query: Query parsing failed at line 1, character position at 77, error message : no viable alternative at input 'g.V('a48543e9-d527-4928-b045-71da15a76bfe').property(single,'title','{\'fr':'",
 "requestId": "4307b026-c0b5-45b0-9ec1-293822ee35ef",
 "code": "MalformedQueryException"
}

我认为您只需要转义引号或者简单地选择用双引号引起来:

g.V('a48543e9-d527-4928-b045-71da15a76bfe').
  property(single, 'title', "{'fr': '', 'en': 'Title Edit 02'}")