DEV Community

Discussion on: How can I reduce amount of boilerplate code while working with TypeScript+mongoose 🙈

Collapse
 
gochev profile image
Nayden Gochev • Edited

Hey there you can use typegoose also you can completely remove the double Model/Schema generation and even the DTOs are not required..

Example with nestjs + typegoose + mongodb :

github.com/gochev/nest-js-poc-mongodb

Collapse
 
gochev profile image
Nayden Gochev

also I have added a blog post about that
dev.to/gochev/nestjs-mongo-typegoo...