I am running the following Cypher query:
WITH "CREATE (test:Test {id: 1})" AS cypher
CALL apoc.cypher.doIt(cypher, {}) YIELD value
CREATE (test2:Test2 {id: 2})
Afterwards, I run MATCH (a) RETURN a
and see that only one node, with Test
label is created. The second CREATE
statement doesn't seem to be run.
If I create Test2
before the CALL
, it does create the node as expected.
Can anyone explain why this is occurring, and how one might continue on with a query after this CALL
clause?
Thanks in advance!