Not updating types

i made changes so i go db pull and its not updating types....
No description
2 Replies
mashumaru
mashumaruOP6mo ago
schema types are updated but on code when using it cant find the updated one i restarted everything nvm i have to npx prisma generate after db pull
Nurul
Nurul6mo ago
That's correct. You would need to perform npx prisma generate in order to regenerate the schema file. Alternatively, you could listen for changes in your schema file and automatically regenerate Prisma Client when changes are detected. https://www.prisma.io/docs/orm/reference/prisma-cli-reference#continue-watching-the-schemaprisma-file-for-changes-to-automatically-re-generate-prisma-client
Prisma CLI reference | Prisma Documentation
This page gives an overview of all available Prisma CLI commands, explains their options and shows numerous usage examples.
Want results from more Discord servers?
Add your server