I'm trying to send this cypher script via 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}]}
But I am getting back:
{"results":[],"errors":[]}
If I the same embedded query in the Neo4J browser it works fine. The following works fine:
{"statements":[{"statement":"CREATE n RETURN n","resultDataContents":["row"],"includeStats":true}]}
I get back:
{"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":[]}
Anyone have any idea what I am doing wrong? Why would I get the empty errors if it's not working?