Last active
March 14, 2021 15:49
-
-
Save maticzav/e991ed17dad5352cf53bf215e6aeea8a 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 | |
# Name of our project | |
service: graphql-server-file-upload-example | |
# Creates a development cluster on your local Docker instance | |
stage: dev | |
cluster: local | |
# Paths to our datamodel files | |
datamodel: | |
- database/datamodel/types.graphql | |
# Copies the secret from .env | |
secret: ${env:PRISMA_SECRET} | |
# .graphqlconfig.yml | |
projects: | |
app: | |
schemaPath: "src/schema.graphql" | |
extensions: | |
endpoints: | |
default: "${env:SERVER_ENDPOINT}" | |
database: | |
schemaPath: "src/generated/database.graphql" # <- Where to put generated schema | |
extensions: | |
prisma: database/prisma.yml # <- Prisma config file path | |
binding: | |
output: src/generated/prisma.ts # <- Where to put generated files | |
generator: prisma-ts # <- Which binding generator should be used |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment