Multiple unrelated queries in Neo4j Cypher?

cypher, neo4j

Solution

In recent releases developers added an option in Neo4j Browser to execute multiple queries.

Open Browser Settings and click on Enable multi statement query editor.

Then just put semicolon on the end of each query and throw them all in browser console.

Here is how it looks

Problem

Does `http://localhost:7474/browser/` not support multiple unrelated queries? This code: ``` MATCH (a {cond:'1'}), (b {cond:'x'}) CREATE a-[:rel]->b MATCH (a {cond:'2'}), (b {cond:'y'}) CREATE a-[:rel]->b MATCH (a {cond:'3'}), (b {cond:'z'}) CREATE a-[:rel]->b ``` causes an error: WITH is required between CREATE and MATCH But since my queries aren't related, I don't think I shall need a `WITH`. How do I do the above without having to enter it one-line-at-a-time?

Original source