chasm
05/11/2018, 11:05 PMprisma init
using the local docker. I do prisma deploy
and it uploads the schema fine, but the generated prisma.graphql
file is neither generated nor updated. This stopped working on an older app after I upgraded from 1.6 to the latest. But now I can't make it work even on a newly created app. The database end is fine -- works like a charm. I can access it through the playground database schema perfectly. But without that prisma.graphql
file I can't do anything through the app schema. Has anyone else run into this problem with 1.8? Is there something really obvious I'm missing? Am I right in thinking that prisma deploy
should regenerate prisma.graphql
?mehdyouras
05/11/2018, 11:16 PMchasm
05/11/2018, 11:20 PMchasm
05/11/2018, 11:21 PMprojects:
app:
schemaPath: src/schema.graphql
extensions:
endpoints:
default: <http://localhost:4000>
database:
schemaPath: src/generated/prisma.graphql
extensions:
prisma: database/prisma.yml
chasm
05/11/2018, 11:23 PMmehdyouras
05/11/2018, 11:23 PMmehdyouras
05/11/2018, 11:24 PMchasm
05/11/2018, 11:24 PMendpoint: <http://localhost:4466/tracks/dev>
datamodel: datamodel.graphql
secret: 'somesecret'
mehdyouras
05/11/2018, 11:24 PMchasm
05/11/2018, 11:24 PMmehdyouras
05/11/2018, 11:25 PMmehdyouras
05/11/2018, 11:25 PMchasm
05/11/2018, 11:26 PM.graphqlconfig.yml
should look like this:
projects:
app:
schemaPath: src/schema.graphql
extensions:
endpoints:
default: <http://localhost:4000>
database:
schemaPath: src/generated/prisma.graphql
extensions:
prisma: database/prisma.yml
prepare-binding:
output: src/generated/prisma.ts
generator: prisma-ts
chasm
05/11/2018, 11:26 PMchasm
05/11/2018, 11:27 PMprisma.yml
like this:chasm
05/11/2018, 11:27 PMendpoint: <http://localhost:4466/tracks/dev>
datamodel: datamodel.graphql
secret: 'somesecret'
hooks:
post-deploy:
- graphql get-schema --project database
- graphql prepare
chasm
05/11/2018, 11:27 PMmehdyouras
05/11/2018, 11:29 PMmehdyouras
05/11/2018, 11:32 PMchasm
05/11/2018, 11:32 PMchasm
05/11/2018, 11:36 PMmehdyouras
05/11/2018, 11:37 PMchasm
05/11/2018, 11:38 PM