Sie sind auf Seite 1von 1

Q1. MATCH (a)-->(b)<--(c) RETURN a.name,b.title,c.

name
MATCH (a)-[r:ACTED_IN]->(b)<-[:DIRECTED]-(c) RETURN a.name,r.roles,b.title,c
.name
Q2. CREATE (movie:Movie {title:"Cannonball Run", released:"1984"});
Q3. MATCH (a:Person {name:"Kevin Bacon"})-[r:ACTED_IN]->(m:Movies {title:"Mystic
River"}
SET r.roles=["Sean Devine"]
RETURN r.roles;
Q3. MATCH (a:Person {name:"Kevin Bacon"})-[r:ACTED_IN]->(m:Movies {title:"Mystic
River"}
SET r.roles=[n in r.roles WHERE n <> "Sean"] + "Sean Devine"
RETURN r.roles;