Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
products.service.ts @Injectable() export class ProductsService { constructor(private productsRepository: ProductsRepository) {} async getAllProducts() { return await this.productsRepository.getAllProducts(); } } As we can see from the products controller, we only have one endpoint defined in this