From bc7cf7f1a6f57c40f46682ff39ec4c0859215303 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Thu, 18 Apr 2024 23:08:35 +0200 Subject: [PATCH] create memgraph compatible uuid --- backend/memgraph/create_person.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/memgraph/create_person.go b/backend/memgraph/create_person.go index 9c146ac..d800efb 100644 --- a/backend/memgraph/create_person.go +++ b/backend/memgraph/create_person.go @@ -2,6 +2,7 @@ package memgraph import ( "fmt" + "strings" "time" "github.com/google/uuid" @@ -20,7 +21,7 @@ func (p *Person) CreatePerson(driver neo4j.DriverWithContext) (*neo4j.Record, er return nil, err } - p.ID = uuid.New().String() + p.ID = strings.ReplaceAll(uuid.New().String(), "-", "") query := fmt.Sprintf("CREATE (n:Person {%s}) RETURN n;", p.ToString())