Skip to content

Instantly share code, notes, and snippets.

@maticzav
Last active January 17, 2018 19:15
Show Gist options
  • Save maticzav/cf97cc170ae5f445ede0a12289343f4c to your computer and use it in GitHub Desktop.
Save maticzav/cf97cc170ae5f445ede0a12289343f4c to your computer and use it in GitHub Desktop.
# prisma.yml
# The name of our project
service: graphql-server-github-auth-example
# Development stage on local cluster
stage: dev
cluster: local
# Our datamodel
datamodel:
- datamodel/types.graphql
# Uses secret provided in the .env
secret: ${env:PRISMA_SECRET}
# .graphqlconfig.yml
projects:
app:
schemaPath: src/schema.graphql
extensions:
endpoints:
default: "http://localhost:4000"
database:
schemaPath: src/generated/database.graphql # <- tells Prisma where to export the Schema.
extensions:
prisma: database/prisma.yml
binding: # <- Generates Prisma bindings to connect server with database.
output: src/generated/prisma.ts # <- Where to store bindings.
generator: prisma-ts # <- Use TypeScript binding generator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment