Install Prisma Client
TypeScript
MongoDB
Install and generate Prisma Client
To get started with Prisma Client, you need to install the @prisma/client
package:
$
Notice that the install command automatically invokes prisma generate
for you which reads your Prisma schema and generates a version of Prisma Client that is tailored to your models.
Whenever you update your Prisma schema, you will need to run the prisma db push
command to create new indexes and regenerate Prisma Client.