Last active
January 17, 2018 19:15
-
-
Save maticzav/cf97cc170ae5f445ede0a12289343f4c to your computer and use it in GitHub Desktop.
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
# 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