init cypher querries

This commit is contained in:
2025-03-03 13:00:23 +01:00
parent a8c4aa9351
commit ef8f8a5118
7 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
CREATE (p:Person $Person) RETURN p
CREATE (p:Person $Person) RETURN p as person

View File

@@ -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)

View File

@@ -0,0 +1,2 @@
MATCH (n:DeletedPerson {id: $id})
DETACH DELETE n;