I’m having an issue importing from a cypher file using neo4j-shell -file <file>. The file includes transaction directives. The first few clear old data, reset and rebuild the schema. Then I have a ~300 line single query that seeds default data (runs fine in the browser). On this, the shell dies with “Transaction started\nWarning: Exiting with unterminated multi-line input.”
Is there a limit to the size of a query the shell can import? Thanks!
No stray quotes or &&. I tried with cat seeder.cql | cypher-shell, but this method does not seem to support multiple transactions in the file? For instance, if the following file only contains the first transaction, it works, but if the second is included, it dies.
:begin
MATCH (n) DETACH DELETE n
:commit
:begin
CALL apoc.schema.assert({}, {});
CREATE CONSTRAINT ON (n:Axis) ASSERT n.uuid IS UNIQUE;
:commit
Thanks for the info! Well when I fixed my lack of semicolons, everything's working with neo4j-shell, for now. #newb. I'll watch for the bug to be fixed in cypher-shell so I can get on the modern stuff.