Last active
March 13, 2018 16:22
-
-
Save lastmjs/03079d9b08d9470f491ce560a7629862 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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