I suspect you’re using “createUser” instead of “register”. This got me stumped in the beginning.
You will also need to set up some reasonable provider for email. There is a default using the equivalent (if not actual) ‘Sendmail’ - but given there’s no auth, reverse lookups, mx, etc., your email will likely be blocked by most email services. I personally use sendgrid but have also used nodemailer smtp & auth with my email provider (O365).
If you’ve already set up, configured, and using a provider other than the default - then my suspicion will be that you are likely using createUser. If so, switch to using register. Also, don’t forget to enable sending email confirmation in the Admin panel under Advanced Settings.
The mutation required for registering a user:
mutation register(
$username: String!,
$email: String!,
$password: String!,
){
register (input: {
username: $username,
email: $email,
password: $password,
}) {
user {
id
}
}
}
* edit was to add the mutation.