mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-14 06:49:05 +02:00
init cypher querries
This commit is contained in:
@@ -1 +1 @@
|
||||
CREATE (p:Person $Person) RETURN p
|
||||
CREATE (p:Person $Person) RETURN p as person
|
@@ -1,4 +1,4 @@
|
||||
MATCH (n:Person { id: $person_id })-[p:Parent*1..]->(family:Person)
|
||||
MATCH (n:Person { id: $id })-[p:Parent*1..]->(family:Person)
|
||||
OPTIONAL MATCH (family)-[c:Child]->(children:Person)
|
||||
WITH family, p, children, c, n
|
||||
OPTIONAL MATCH (children)<-[p2:Parent]-(OtherParents:Person)
|
0
app/src/lib/server/queries/get_relationship.cypher
Normal file
0
app/src/lib/server/queries/get_relationship.cypher
Normal file
@@ -0,0 +1,2 @@
|
||||
MATCH (n:DeletedPerson {id: $id})
|
||||
DETACH DELETE n;
|
Reference in New Issue
Block a user