lawjolla
05/09/2018, 6:21 AM# prisma.yml
# ...
hooks:
post-deploy:
- echo "Deployment finished"
- graphql get-schema --project prisma
- graphql prepare
with
#. .graphqlconfig.yml
#...
prisma:
schemaPath: src/generated/prisma.graphql
extensions:
prisma: database/prisma.yml
prepare-binding:
output: src/generated/prisma.ts
generator: prisma-ts
does not generate a new schema at src/generated/prisma.graphql on prisma deploy
. What am I missing?lawjolla
05/09/2018, 6:37 AMprisma.graphql
if there's a change to the service. In my situation, I use the sandbox and prisma deploy
ed from work, but I don't commit prisma.graphql
(I guess I should). At home when I tried to generate it, it wouldn't do it. Changing the schema and changing it back with deploy
workednilan
05/10/2018, 1:48 PMprisma.yml
?lawjolla
05/10/2018, 3:09 PMdeploy
diff doesn't see a change, the deployment hook will not generate a new prisma.graphql
even though it acts like it is. Is it possible to change that behavior so it also says "no changes detected?"nilan
05/10/2018, 3:11 PMlawjolla
05/10/2018, 3:14 PMlawjolla
05/10/2018, 3:14 PMprisma.graphql
was regeneratednilan
05/10/2018, 3:15 PMgraphql get-schema --project prisma
directly?lawjolla
05/10/2018, 3:18 PMprisma.graphql
(we can debate if that's a good choice.. probably not)
2. Change an enum
3. prisma deploy
4. Commit, push, and go home
5. New computer (at home), prisma deploy
6. No change to prisma.graphql
So on the home computer, I couldn't get an updated generated file until I changed the schema and prisma deploy
nilan
05/10/2018, 3:19 PMgraphql prepare
, can you raise an issue here: https://github.com/graphql-cli/graphql-cli/issues?nilan
05/10/2018, 3:20 PMrm src/generated/prisma.graphql
, or commit the file to gitlawjolla
05/10/2018, 3:20 PMlawjolla
05/10/2018, 3:20 PMnilan
05/10/2018, 3:21 PMlawjolla
05/10/2018, 3:28 PMnilan
05/10/2018, 3:30 PM