Hi Guys. Following the signup example from graph.c...
# prisma-whats-new
f
Hi Guys. Following the signup example from graph.cool. Having an issue with confirm email.
The mutation confirmEmail returns a error
Copy code
"errors": [
            {
              "message": "Unknown argument 'confirmToken' on field 'User' of type 'Query'. (line 3, column 14):\n        User(confirmToken: \"315b775c998010ce60566376e035a6bf5c1c1058\") {\n             ^",
Copy code
type User implements Node {
  confirmExpires: DateTime
  confirmToken: String
  confirmed: Boolean!
  createdAt: DateTime!
  email: String! @isUnique
  firstName: String
  id: ID! @isUnique
  lastName: String
  password: String!
  updatedAt: DateTime!
}
a
You have to mark 'confirmToken' as unique
f
@agartha Thank you! missed that one
👍🏻 1
a
That makes perfect sense, I happened to help mrwillis figure it out, that's why I knew the pull request even existed.
👍 1