fix api api communications

This commit is contained in:
2024-05-17 14:03:34 +02:00
parent 069d9317a3
commit 4db7a35271
12 changed files with 195 additions and 145 deletions

View File

@@ -26,7 +26,7 @@ func ViewFamiliyTree(driver neo4j.DriverWithContext) gin.HandlerFunc {
}
query := `
MATCH (n:Person {ID: $person_id})-[p:Parent*1..]->(family:Person)
MATCH (n:Person {id: $person_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)