How to refresh the generated server data
gazpachu opened this issue · comments
Joan Mira commented
Hi,
I'm building an app that handles social events, rather than blog posts. I was able to update most of the code but I'm stuck with the server/src/generated/prisma-client
files. Do I have to manually update the contents of these files or do they get automatically generated? How can I trigger that generation?
Thanks.
Joan Mira commented
pantharshit00 answered my question in the slack channel:
You can generate the prisma client again using prisma generate
command, it will reflect the changes in your datamodel.
Also you can add a post deploy hook in prisma.yml to automate this process