Back to Blog
Originally published on Medium.Read Original Article
2022-12-31•
Creating and Using Custom Repositories in NestJS with TypeORM 0.3
Creating and Using Custom Repositories in NestJS with TypeORM 0.3 NestJS is a popular framework for building scalable and efficient server-s...

Creating and Using Custom Repositories in NestJS with TypeORM 0.3
**NestJS **is a popular framework for building scalable and efficient server-side applications using Node.js. It provides a modular structure for organizing your code and makes it easy to use various libraries and frameworks, such as TypeORM, for managing your database.
In TypeORM 0.2.x, it was easy to create a custom repository and use the @InjectRepository and @EntityRepository annotation to inject it into your NestJS service. However, in TypeORM 0.3, the API for creating custom repositories has changed, and the existing approach is no longer valid.
Sponsored Advertisement