Created
November 26, 2018 08:26
-
-
Save redbluenat/dd388ef48acd358e774fe21d3e2849ee to your computer and use it in GitHub Desktop.
index-server.js
This file contains hidden or 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
| const server = new GraphQLServer({ | |
| typeDefs: 'src/schema.graphql', | |
| resolvers, | |
| context: req => ({ | |
| ...req, | |
| db: new Prisma({ | |
| typeDefs: 'src/generated/prisma.graphql', | |
| endpoint: 'YOUR_ENDPOINT_PATH', | |
| secret: 'testsecret', | |
| debug: true | |
| }) | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment