Neo4j RESTAPI批处理密码JSON解析问题



我将以下内容发布到/db/data/batch,试图一次检索节点并更新其属性。

[{"method":"POST","to":"/cypher","body":{"params":{},"query":"start x = node(683) return x"},"id":1},{"method":"PUT","to":"{1}/properties","body":{"score":100,"pp":1},"id":2}]

从我在网上看到的情况来看,它看起来还可以,但我得到了以下错误响应

onData:  {
  "message" : "Illegal character in path at index 2: ./{1}/properties",
 "exception" : "IllegalArgumentException",
  "fullname" : "java.lang.IllegalArgumentException",

如果重要的话,我正在使用AS3-JSON和neo4j 2.0,我怀疑这与Flash的JSON.stringify扰乱了"{1}/属性"有关,但传出的消息看起来很好
有什么想法吗?

您不能批处理密码并引用它返回的东西,AFAIK。

如果你在做密码,你可以只做start x=node(683) set x.score=100, x.pp=1。(传入参数)

最新更新