Question. Does someone know what is going on here?...
# prisma-whats-new
j
Question. Does someone know what is going on here? I am getting this error after using
gc deploy
.
Copy code
Global
    × The supplied query for the server side subscription `sendSignUpEmailConfirmation` is invalid. The provided query doesn't include any known model name. Please check for the latest subscriptions API.
1
This is how my
graphcool.yml
file looks:
Copy code
# graphcool.yml

# Stuff...

functions:
  sendSignUpEmailConfirmation:
    type: subscription
    query: ./src/auth/email-password/sign-up/1-signup-schema.graphql
    handler:
      code:
        src: ./src/auth/email-password/sign-up/1-signup.js

# More stuff...
My subscription file:
Copy code
subscription {
  User(filter: { mutation_in: [CREATED] }) {
    node {
      email
      confirmToken
      firstName
      lastName
    }
  }
}
a
What do your types look like?
j
Hi @agartha.
Copy code
type User @model {
  id: ID! @isUnique
  firstName: String!
  lastName: String!
  email: String! @isUnique
  password: String!
  confirmToken: String
  confirmExpires: DateTime
  confirmed: Boolean! @defaultValue(value: false)
}
Opss! It was my fault. I was referencing to another GraphQL file. Sorry! 🙂
👍🏻 1