Add Person model

This commit is contained in:
2024-04-14 23:49:33 +02:00
parent cb6628a83c
commit 3b12f4798c
8 changed files with 220 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ func ViewPerson(driver neo4j.DriverWithContext) gin.HandlerFunc {
return
}
query := fmt.Sprintf("MATCH (n:Person) WHERE n.ID = '%s' RETURN n", id)
query := fmt.Sprintf("MATCH (n:Person) WHERE n.ID = '%s' RETURN n;", id)
result, err := session.Run(ctx, query, nil)
if err != nil {