Skip to content

Instantly share code, notes, and snippets.

@maticzav
Last active March 14, 2021 15:49
Show Gist options
  • Save maticzav/e991ed17dad5352cf53bf215e6aeea8a to your computer and use it in GitHub Desktop.
Save maticzav/e991ed17dad5352cf53bf215e6aeea8a to your computer and use it in GitHub Desktop.
# 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