I ran the following query in Neo4j but the nodesCreated
count is 0, even though the node was successfully created:
CALL apoc.create.nodes(["Person", "Actor"], [{name: "Tom Hanks"}]);
Here's the response I got:
{
"query": {
"text": "CALL apoc.create.nodes([\"Person\", \"Actor\"], [{name: \"Tom Hanks\"}]);",
"parameters": {}
},
"queryType": "rw",
"counters": {
"_stats": {
"nodesCreated": 0,
"nodesDeleted": 0,
"relationshipsCreated": 0,
"relationshipsDeleted": 0,
"propertiesSet": 0,
"labelsAdded": 0,
"labelsRemoved": 0,
"indexesAdded": 0,
"indexesRemoved": 0,
"constraintsAdded": 0,
"constraintsRemoved": 0
},
"_systemUpdates": 0
},
"updateStatistics": {
"_stats": {
"nodesCreated": 0,
"nodesDeleted": 0,
"relationshipsCreated": 0,
"relationshipsDeleted": 0,
"propertiesSet": 0,
"labelsAdded": 0,
"labelsRemoved": 0,
"indexesAdded": 0,
"indexesRemoved": 0,
"constraintsAdded": 0,
"constraintsRemoved": 0
},
"_systemUpdates": 0
},
"plan": false,
"profile": false,
"notifications": [],
"server": {
"address": "5b6f7887.databases.neo4j.io:7687",
"agent": "Neo4j/5.5-aura",
"protocolVersion": 5
},
"resultConsumedAfter": {
"low": 20,
"high": 0
},
"resultAvailableAfter": {
"low": 13,
"high": 0
},
"database": {
"name": "neo4j"
}
}
I have verified that the APOC library is installed and that the parameters are correct. The node was actually created, so why is the nodesCreated
count still 0? Are there any other reasons why this might be happening, and how can I fix this?