Skip to content

Instantly share code, notes, and snippets.

@lastmjs
Last active March 13, 2018 16:22
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 lastmjs/03079d9b08d9470f491ce560a7629862 to your computer and use it in GitHub Desktop.
Save lastmjs/03079d9b08d9470f491ce560a7629862 to your computer and use it in GitHub Desktop.
# This is where we define any custom resolvers, and where we add custom directives to any generated Prisma resolvers
type AuthPayload {
token: String!
user: User!
}
type Mutation {
# Custom resolvers
signup(email: String!, password: String!): AuthPayload!
login(email: String!, password: String!): AuthPayload!
# Generated resolvers, these are copied from the Prisma output by hand
createUser(data: UserCreateInput!): User! @authenticated
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment