Why Bedrock uses Prisma as its ORM
Max Stoiber
Prisma is the best Node.js ORM — no contest. I have used it for all of my projects over the past two years, and have had a fantastic experience with it. There are four main reasons I prefer it over the alternatives:
- Beautiful API: The Prisma API is unparalleled, its one of the best APIs I have ever seen! Every name is exactly what it should be, every property is exactly where it should be, the whole thing just works. It was obviously very carefully designed and is intuitive all the way through.
- Incredible TypeScript support: Even for the non-intuitive bits I only rarely have to look at the (excellent) documentation. The incredible TypeScript support means Prisma basically documents itself — I just start typing and it auto-completes me!
- Migrations: Migrations are critical for production-ready systems, yet in Node.js ORMs they tend to be an afterthought. Not so with Prisma, it strikes the perfect balance between automating the tedious bits while giving you full control.
- Active maintenance & community: Last but not least, Prisma is very actively maintained. Every two weeks they ship a minor release and invariably it just keeps getting better and better and better. On top of that, the community is very engaged, making it easy to get answers to any question you might have.
All in all, I would highly recommend using Prisma for your next project, which is why Bedrock comes pre-configured with Prisma out of the box. However, it lets you switch to a different ORM if you want to, of course!
Jumpstart your next SaaS product with Bedrock
The modern full-stack Next.js & GraphQL boilerplate by @mxstbr with authentication, subscription payments, teams, invitations, emails and everything else you need
Learn more