NestJS Prisma Integration

•
46
•

Integrates Prisma ORM seamlessly into NestJS applications with singleton service setup, repository patterns, and unit testing mocks.

The NestJS Prisma skill provides structured patterns and best practices for integrating Prisma ORM into NestJS backends. It guides developers through creating an injectable, globally scoped PrismaService with proper lifecycle management ($connect and $disconnect), consuming the database client across feature services, and configuring mock-based unit tests with NestJS Test modules for robust and maintainable database access.

主な機能

01Type-safe data access and query structuring guidelines
02Step-by-step Prisma CLI setup and migration workflow checklists
03Isolated unit testing strategies using mocked Prisma clients
04Global PrismaService configuration with automatic lifecycle connection handling
05Dependency injection patterns for feature-level database services
0646 GitHub stars

ユースケース

01Writing isolated unit tests for NestJS service layers utilizing Prisma queries
02Managing connection pooling and client lifecycle hooks in NestJS applications
03Bootstrapping a new NestJS backend with Prisma as the primary ORM