Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mutation {
register(
email: "new_user@email.com",
username: "new_user",
password1: "supersecretpassword",
password2: "supersecretpassword",
) {
success,
errors,
token,
refreshToken
}
}
@Emehinola
Copy link

Emehinola commented Jul 14, 2021

where in my project should this be added?

@JoaquinAcuna97
Copy link
Author

JoaquinAcuna97 commented Jul 16, 2021

Hi Emehinola,
this file does not goes in the structure of your proyect, is a test mutation for you to run in the server in order to create a new user.
So, if you has created your django server try this:

in there, run the mutation, the user should be created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment