Hey, I'm using graphcool cloud with the email auth...
# prisma-whats-new
t
Hey, I'm using graphcool cloud with the email authentication enabled, I can create users but when I try and return the token in the response I'm getting
GraphQL error: Cannot query field 'token' on type 'User'.
. My mutation is this:
Copy code
mutation SignupUserMutation(
    $email: String!
    $password: String!
    $username: String
  ) {
  createUser(authProvider: {
    email: {
      email: $email,
      password: $password,
    },
  }, username: $username) {
    id
    token
  }
  }
r
I think the
createUser
mutation is just CRUD for
User
. At least it is for me. I have a resolver function
signupUser
that returns a
token
. If you check your schema, maybe you have another mutation that returns a token?