Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
class TransactionInterceptor implements NestInterceptor { constructor(private dataSource: DataSource) {} async intercept( context: ExecutionContext, next: CallHandler<any>, ): Promise<Observable<any>> { // get request object const req = context.switchToHttp().getRequest<Request>(); // start