2 Replies
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 pullThat'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-clientPrisma CLI reference | Prisma Documentation
This page gives an overview of all available Prisma CLI commands, explains their options and shows numerous usage examples.