Choosing a Database Access Layer for NestJS: TypeORM vs. Prisma
A technical decision guide for NestJS developers comparing TypeORM and Prisma, focusing on type safety, architectural patterns, and deployment constraints.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
A technical decision guide for NestJS developers comparing TypeORM and Prisma, focusing on type safety, architectural patterns, and deployment constraints.
Learn how to diagnose and fix circular dependency errors in NestJS using architectural refactoring and the forwardRef() utility to resolve bootstrap crashes.
NestJS’s ValidationPipe turns DTOs into hard runtime contracts. Learn how to register it globally, enforce whitelisting, handle errors, and balance performance in this practical guide.
Enforce payload shape and type safety at the application edge using ValidationPipe and class-validator to prevent invalid data from reaching your service layer.
Stop passing user and tenant IDs through every service method. Learn how to use NestJS Request Scope to handle per-request state cleanly while understanding the performance trade-offs.
The goal is to guarantee a reversible upgrade path when a NestJS major release alters decorator signatures or DI configuration, allowing teams to restore the pre‑upgrade state without losing uncommitted work. The nest update CLI speeds up dependency resolution to the latest compatible versions but provides no built‑in mechanism to revert transitive changes,
A small NestJS application is being considered for migration without dropping in-flight requests. The documented capabilities under review are graceful shutdown on process signals and dynamic module loading for service replacement. Graceful shutdown is handled via app.close() and is intended to allow in-flight requests to complete. Dynamic module loading sup
Goal: Verify that a NestJS service using TypeORM can resume normal operation after a database backup has been restored without processing requests that were in flight at the moment of the dump. Constraints: The backup is performed externally (e.g., pg_dump) and the application is restarted against the restored instance; TypeORM does not retain knowledge of t
I need a little help with migration. I'm trying to seed DB using migration. But I get an error "QueryFailedError: relation "account" does not exist". I think it's just typical newbie mistake. So please check my code: account.entity.ts import { BeforeInsert, Column, Entity, OneToMany } from 'typeorm'; import { AbstractEntity } from '../../common/abstract.enti