I am setting email&password auth using an exam...
# prisma-whats-new
t
I am setting email&password auth using an example from github, and i am stuck on 2nd step of email-user-creation, i can’t create a server-side-subscription for sending a confirmation email, after specifying the name of function, schema and a function I get an error message:
Copy code
The supplied query for the server side subscription `sendVerificationEmail` is invalid. Cannot query field 'confirmToken' on type 'User'. (line 7, column 7): confirmToken ^
Am i missing additional fields on my
User
type?
n
which example are you following?
sounds like you included
confirmToken
in your subscription query, but that's not a field on
User
.
I've used the schema provided in the example, which looks like this:
Copy code
# This schema is used for all included functions

type User {
  id: ID!

  # Must be unique
  # Make it required if email is the only authorization method in your app
  email: String @isUnique
  password: String
}
t
Ah, great, thanks!
👍 1