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?