There are examples of creating multiple nodes
CREATE
(:Person {name: 'Michael Caine', born: 1933}),
(:Person {name: 'Liam Neeson', born: 1952}),
(:Person {name: 'Katie Holmes', born: 1978}),
(:Person {name: 'Benjamin Melniker', born: 1913})
in the "Creating Data" section and if you put this into the desktop browser the code will run,
but I have yet to figure out what the equivalent MERGE statements need to be to create relationships across different nodes.
MATCH (p:Person), (m:Movie) WHERE m.title = 'Batman Begins' AND p.name ENDS WITH 'Caine' MERGE (p)-[:ACTED_IN]->(m)
RETURN p, m
If I copy multiple merge statements like the CREATE statement above an error message is returned.
How do I list a whole lot of MERGE commands for different nodes?
Please be patient- just learning baby steps.