Hi there,
I haven’t been able to generate a new prisma.graphql for a week.
When I run npm run deploy
I receive a message that it’s updated but I still see old code
PLEASE ANY HELP IS APPRECIATED
When I edit my datamodel.prisma type and run npm run deploy
a new prisma.graphql isn’t generated
I’ve set up my package.json that I only need to run npm run deploy
.
Here is my prisma.yml set up
endpoint: ${env:PRISMA_ENDPOINT}
datamodel: datamodel.prisma
# secret: ${env:PRISMA_SECRET}
hooks:
post-deploy:
- graphql get-schema -p prisma
.graphqlconfig.yml
projects:
app:
schemaPath: "src/schema.graphql"
extensions:
endpoints:
default: "http://localhost:4444"
prisma:
schemaPath: "src/generated/prisma.graphql"
extensions:
prisma: prisma.yml
my package.json scripts object so I can use npm run deploy
in the terminal
"scripts": {
"start": "nodemon -e js,graphql -x node src/index.js",
"dev": "nodemon -e js,graphql -x node --inspect src/index.js",
"test": "jest",
"deploy": "prisma deploy --env-file variables.env"
},