Prisma Class Generator

JSON →
library 0.2.11 ·javascript
verified Jun 7, 2026

A Prisma generator that creates TypeScript class definitions from your Prisma schema, primarily for use with NestJS decorators like @nestjs/swagger and TypeGraphQL. Current version 0.2.11 generates per-model classes with optional separate relational fields. It integrates into the Prisma generate workflow, automatically producing classes that mirror the Prisma model structure. Key differentiator: bridges Prisma's type-only output with NestJS's class- and decorator-based ecosystem, reducing boilerplate when using swagger or GraphQL decorators. Release cadence is sporadic, last updated 2021.