我试图通过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":[]}
任何人有任何想法,我做错了什么? 为什么我会得到空的错误,如果它不工作?