The canonical starting point for a NestJS module backed by TypeORM is the one the framework itself documents: the module declares TypeOrmModule. forFeature([Order]) and the service receives the repository by injection. @ Injectable () export class OrderService { constructor ( @ InjectRepository ...

Source: [Dev.to](https://dev.to/chacaponquin/the-repository-pattern-in-nestjs-a-collection-that-happens-to-live-in-a-database-1i1k)

Sponsored