Skip to content

Instantly share code, notes, and snippets.



Last active Mar 13, 2018
What would you like to do?
# 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
You can’t perform that action at this time.