P
Prisma5mo ago
Markigno

Mongodb schema update - how to

I looked at the documentation to understand the right way to update the schema for MongoDB. I'm doing prisma generate prima db push is it the correct way? not able to find documentation
2 Replies
Nurul
Nurul5mo ago
Hey, Yes that is correct. For MongoDB, db push is the recommended way to push the schema changes https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/mongodb/install-prisma-client-typescript-mongodb
Install Prisma Client: TypeScript and MongoDB | Prisma Documentation
Install and generate Prisma Client in your project using TypeScript and MongoDB
Markigno
MarkignoOP5mo ago
ciao, a problem with Firebase functions should be in place... whenever I change the schema and update it with the command db push (deploy, etc). The functions are not able to see the changes and I need to delete them (the functions impacted by the schema change) and with the next deployment, the functions see the schema change. @Nurul (Prisma) any idea?
Want results from more Discord servers?
Add your server