I want to submit a list of semi-colon separated Cypher write statements via the web browser but I'm getting errors...
MERGE (a:user{id: 'A'})
MERGE (b:product{id: '1'})
CREATE UNIQUE (a)-[:USED_BY]->(b);
MERGE (a:user{id: 'B'})
MERGE (b:product{id: '4'})
CREATE UNIQUE (a)-[:USED_BY]->(b);
I'm creating new nodes and referring to them in later relationship statements so I want to submit separate queries rather than one long one and I'd like to do this via Cypher.
What's the best way to do this?
The guide drawer contains interactive Neo4j Browser guides for learning concepts and tools with Neo4j. Show the guide drawer with a specific Neo4j Browser guide. The name can be specified with or without the Hyphen ( - ) character, e.g, :guide movie-graph or :guide movie graph .
Default URL to Neo4j Browser is http://localhost:7474/browser (use your web browser). Default connection URL to Neo4j is bolt://localhost:7687 . Neo4j Browser is available as a web application at https://browser.graphapp.io/.
Return all elements When you want to return all nodes, relationships and paths found in a query, you can use the * symbol.
Neo4j Browser Sync is a feature that allows you to synchronize your favorites, styling, and settings to cloud storage, so you can share it across machines and browsers.
There is a simple setting to do this now: Enable multi statement query editor
.
Then you can run multiple statements separated by semi-colons ;
I found a solution at Multiple unrelated queries in Neo4j Cypher?
Simply put WITH count(*) as dummy
between independent commands.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With