NestJS nggabung kanthi rapi karo database via ORMs — sing paling umum TypeORM (integrasi official @nestjs/typeorm) lan Prisma (ORM modern, type-safe sing digunakake via custom service). Loro-lorone cocok karo struktur module/provider/DI ing NestJS.
Integrasi TypeORM
({
: [
.({
: ,
: process..,
: [],
: ,
}),
.([]),
],
})
{}
