Does anyone face this issue? <https://www.prisma.i...
# random
h
d
Can you please share your prisma.yml file? You have to use
hooks
there to make the
prisma.graphql
file update on prisma deploy. https://www.prisma.io/docs/prisma-cli-and-configuration/prisma-yml-5cy7/#hooks-optional
h
Oh Thank you!
Adding hook still doesn’t work
Copy code
hooks:
  post-deploy:
    - prisma generate
Am I missing something else?
d
prisma 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-optional
h
Copy code
endpoint: <http://localhost:4466>
datamodel: datamodel.prisma
# secret: dooboolab-secret-123

generate:
  - generator: flow-client
    output: ./generated/prisma-client/

hooks:
  post-deploy:
    - prisma generate
I haven’t edited much since I’ve create new from prisma
d
Yes, so, this generate only instructs the CLI to generate the flow client. To update the
prisma.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
Copy code
generate:
    - generator: javascript-client
      output: ./generated/prisma-client
    - generator: graphql-schema
      output: ./generated/