func addConstraints(conn *neoism.Database) { _, err := conn.CreateUniqueConstraint("Key", "keyid") if err != nil { app.Logger.Info("Failed to create constraint, probably already exists") } _, err = conn.CreateUniqueConstraint("UserID", "uuid") if err != nil { app.Logger.Info("Failed to create constraint, probably already exists") } }