Showcase: Accessing Databases using NestJS with Prisma
summary
Shows how to wire Prisma Client into NestJS by providing a PrismaService for DI that uses OnModuleInit/OnModuleDestroy to connect and disconnect, running against an embedded SQLite database. Implements concrete REST endpoints /conferences and /conferences/:id and mirrors them as code‑first GraphQL queries in Playground, using Prisma Client operations findMany/findOne/create/delete/update/count. Demo code is on GitHub, the endpoints return actual conference rows and the GraphQL queries work live.
AI-written summary · about
