{"repo":"kimjbstar/prisma-class-generator","free":true,"listed":false,"github":"https://github.com/kimjbstar/prisma-class-generator","clone":"git clone https://github.com/kimjbstar/prisma-class-generator.git","description":"Prisma generator that emits TypeScript classes decorated for @nestjs/swagger, class-validator, and TypeGraphQL — DTO/entity classes generated straight from schema.prisma.","language":"TypeScript","stars":191,"topics":["typescript","swagger","generator","nestjs","prisma","class-validator","codegen","dto","graphql","openapi"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Prisma Class Generator See CHANGELOG.md for release notes. Found a bug or want a feature? Open an issue. Have a \"how do I...?\" question instead? Ask in Discussions — it's faster for you and keeps the issue tracker focused on actual bugs. Contents · Usage · Supported options · Per-field directives · Databases · Prisma versions · Features · Comparison with similar tools · FAQ In a hurry? dryRun defaults to true , so the first run prints the classes to your terminal instead of writing them. Set dryRun = \"false\" in the generator block once the preview looks right — see Supported options. Prisma Prisma is a database ORM library for Node.js and TypeScript. Prisma generates each model's type definitions directly from schema.prisma , so no additional entry classes or repository layers are required. That works well on its own, but it runs into a limitation with frameworks like NestJS: to use @nestjs/swagger , an entity has to be defined as a class, and Prisma Client's generated types aren't classes. This tool closes that gap — it generates a TypeScript file per model based on schema.prisma . The generated classes are formatted with prettier, using the user's prettier config file if present, so defining classes by hand is no longer necessary while schema.prisma stays the single source of truth. Prisma Client's returned objects don't include a model's relational fields. This generator can produce two separate files per model instead — one that matches Prisma Client's own interface, and ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kimjbstar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kimjbstar/prisma-class-generator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}