neo4j create relationship between existing nodes

JavaScript
MATCH (a:Person),(b:Person)
WHERE a.name = 'A' AND b.name = 'B'
CREATE (a)-[r:RELTYPE]->(b)
RETURN type(r)
Source

Also in JavaScript: