我正在尝试通过 REST 发送此密码脚本:
{"statements":[{"statement":"LOAD CSV WITH HEADERS FROM \"http://localhost:9000/api/csv/Countries/csv\" as csvLine
MERGE (c:Country { Code: csvLine.Code })
RETURN c","resultDataContents":["row"],"includeStats":true}]}
但我回来了:
{"results":[],"errors":[]}
如果我在 Neo4J 浏览器中使用相同的嵌入式查询,它就可以正常工作。以下工作正常:
{"statements":[{"statement":"CREATE n RETURN n","resultDataContents":["row"],"includeStats":true}]}
我回来了:
{"results":[{"columns":["n"],"data":[{"row":[{}]}],"stats":{"contains_updates":true,"nodes_created":1,"nodes_deleted":0,"properties_set":0,"relationships_created":0,"relationship_deleted":0,"labels_added":0,"labels_removed":0,"indexes_added":0,"indexes_removed":0,"constraints_added":0,"constraints_removed":0}}],"errors":[]}
有人知道我做错了什么吗?如果它不起作用,为什么我会得到空错误?