Sign in
Log inSign up
Durgadas Kamath

179 reads

2 comments

Gianluca Di Gesaro
Gianluca Di Gesaro
Mar 17, 2023

Hello Durgadas, great article. I try to use a custom repository in an helper class outside nestjs service, how I can instatiate this class passing the repository as parameter?

·
·1 reply
Durgadas Kamath
Durgadas Kamath
Author
·Mar 22, 2023

As long as you have exposed the repository within the module under exports , you should be able to inject it outside of the current service.

·