Skip to content

Instantly share code, notes, and snippets.

@gc-codesnippets
Created March 26, 2018 12:15
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 gc-codesnippets/ce8d3a1ea2b477cc4e6b2b2a247a1634 to your computer and use it in GitHub Desktop.
Save gc-codesnippets/ce8d3a1ea2b477cc4e6b2b2a247a1634 to your computer and use it in GitHub Desktop.
const server = new GraphQLServer({
typeDefs: './src/schema.graphql',
resolvers,
context: req => ({
...req,
db: new Prisma({
typeDefs: 'src/generated/prisma.graphql',
endpoint: 'https://eu1.prisma.sh/public-warpcrow-597/blogr/dev',
secret: 'mysecret123',
debug: true,
}),
}),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment