Skip to content

Instantly share code, notes, and snippets.

@JoaquinAcuna97
Created November 16, 2020 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoaquinAcuna97/1c9e96eae29dcbab5f8d0bef31a11c96 to your computer and use it in GitHub Desktop.
Save JoaquinAcuna97/1c9e96eae29dcbab5f8d0bef31a11c96 to your computer and use it in GitHub Desktop.
mutation {
register(
email: "new_user@email.com",
username: "new_user",
password1: "supersecretpassword",
password2: "supersecretpassword",
) {
success,
errors,
token,
refreshToken
}
}
@Emehinola
Copy link

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