mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-14 14:59:07 +02:00
add relationship cypher querries.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
MATCH (a:Person), (b:Person)
|
||||
WHERE a.id = $id1 AND b.id = $id2
|
||||
CREATE (a)-[r:Relationship $Relationship]->(b)
|
||||
RETURN r as relationship
|
@@ -0,0 +1,4 @@
|
||||
MATCH (a:Person), (b:Person)
|
||||
WHERE a.id = $id1 AND b.id = $id2
|
||||
CREATE (a)-[r:Relationship $Relationship]-(b)
|
||||
RETURN r as relationship
|
@@ -0,0 +1,5 @@
|
||||
MATCH (a:Person), (b:Person)
|
||||
WHERE a.id = $id1 AND b.id = $id2
|
||||
CREATE (a)-[r1:Relationship $Relationship1]->(b)
|
||||
CREATE (b)-[r2:Relationship $Relationship2]->(a)
|
||||
RETURN r1 as relationship1, r2 as relationship2
|
Reference in New Issue
Block a user