Prisma really won me over

ORMPrisma

I've been using TypeORM on the backend for years. I thought it was the best ORM, until I tried Prisma. Now I have no interest in going back.

What convinced me:

  • Queries and their results are typed.
  • Defining models is dead simple.
  • Less boilerplate: the repositories for every entity sit in a single PrismaClient object. As a NestJS dev, that's the end of 10 lines to inject a repository.
  • The generated migrations are easy to read.
  • Seeding is built in.

Prisma with the result typed