Allow empty email
This commit is contained in:
@@ -2286,7 +2286,8 @@ type Meta {
|
||||
|
||||
type User {
|
||||
id: ID!
|
||||
email: String!
|
||||
# email or phone_number is always present
|
||||
email: String
|
||||
email_verified: Boolean!
|
||||
signup_methods: String!
|
||||
given_name: String
|
||||
@@ -11696,14 +11697,11 @@ func (ec *executionContext) _User_email(ctx context.Context, field graphql.Colle
|
||||
return graphql.Null
|
||||
}
|
||||
if resTmp == nil {
|
||||
if !graphql.HasFieldError(ctx, fc) {
|
||||
ec.Errorf(ctx, "must not be null")
|
||||
}
|
||||
return graphql.Null
|
||||
}
|
||||
res := resTmp.(string)
|
||||
res := resTmp.(*string)
|
||||
fc.Result = res
|
||||
return ec.marshalNString2string(ctx, field.Selections, res)
|
||||
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
||||
}
|
||||
|
||||
func (ec *executionContext) fieldContext_User_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
@@ -19847,9 +19845,6 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj
|
||||
}
|
||||
case "email":
|
||||
out.Values[i] = ec._User_email(ctx, field, obj)
|
||||
if out.Values[i] == graphql.Null {
|
||||
out.Invalids++
|
||||
}
|
||||
case "email_verified":
|
||||
out.Values[i] = ec._User_email_verified(ctx, field, obj)
|
||||
if out.Values[i] == graphql.Null {
|
||||
|
@@ -429,7 +429,7 @@ type UpdateWebhookRequest struct {
|
||||
|
||||
type User struct {
|
||||
ID string `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Email *string `json:"email,omitempty"`
|
||||
EmailVerified bool `json:"email_verified"`
|
||||
SignupMethods string `json:"signup_methods"`
|
||||
GivenName *string `json:"given_name,omitempty"`
|
||||
|
@@ -32,7 +32,8 @@ type Meta {
|
||||
|
||||
type User {
|
||||
id: ID!
|
||||
email: String!
|
||||
# email or phone_number is always present
|
||||
email: String
|
||||
email_verified: Boolean!
|
||||
signup_methods: String!
|
||||
given_name: String
|
||||
|
Reference in New Issue
Block a user