Hyo
12/07/2018, 8:50 AMdivyendu
12/07/2018, 8:55 AMhooks there to make the prisma.graphql file update on prisma deploy.
https://www.prisma.io/docs/prisma-cli-and-configuration/prisma-yml-5cy7/#hooks-optionalHyo
12/07/2018, 8:56 AMHyo
12/07/2018, 9:58 AMhooks:
post-deploy:
- prisma generateHyo
12/07/2018, 9:59 AMdivyendu
12/07/2018, 10:00 AMprisma generate generates stuff based on the generate property in prisma.yml. How does your prisma.yml look like?
Does it have generate the guides the CLI to update the prisma.graphql file?
https://www.prisma.io/docs/prisma-cli-and-configuration/prisma-yml-5cy7/#generate-optionalHyo
12/07/2018, 10:02 AMendpoint: <http://localhost:4466>
datamodel: datamodel.prisma
# secret: dooboolab-secret-123
generate:
- generator: flow-client
output: ./generated/prisma-client/
hooks:
post-deploy:
- prisma generateHyo
12/07/2018, 10:02 AMdivyendu
12/07/2018, 10:07 AMprisma.graphql, you need to add the schema generation generator as well. As shown in the docs link I shared above, it (the generate part) would look something like this then
generate:
- generator: javascript-client
output: ./generated/prisma-client
- generator: graphql-schema
output: ./generated/