Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

neo4j create relationship between existing nodes

MATCH (a:Person),(b:Person)
WHERE a.name = 'A' AND b.name = 'B'
CREATE (a)-[r:RELTYPE]->(b)
RETURN type(r)
Source by neo4j.com #
 
PREVIOUS NEXT
Tagged: #create #relationship #existing #nodes
ADD COMMENT
Topic
Name
5+1 =