user, err := client.User.FindOne().Exec(ctx)
email, ok := user.Email()
if !ok {
return fmt.Errorf("email is null")
}
log.Printf("User email is set")
Created
December 3, 2019 12:02
-
-
Save steebchen/55b6da9ecaa084e349b7796eb98ae5bc to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment