Joellao
02/24/2019, 10:19 PMsignup(emailOrUsername: CustomType!, password: String!)
and customType{data: String!}
and then check in the backend if I should insert as email or username, but do you guys use another method, seems like hacky to mebkstorm
02/25/2019, 3:45 AMsignup (emailOrUserName: String!, password: String!)
Resolver:
if(isemail(emailOrUserName)) {
// validate the email
} else {
// validate the user name
}
It's just my idea fast parrotJoellao
02/25/2019, 2:17 PM