graphql-boilerplates / react-fullstack-graphql

Starter projects for fullstack applications based on React & GraphQL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to refresh the generated server data

gazpachu opened this issue · comments

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.

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