How to use factory for providing classes in nestjs dependency injection system?
I want to create multiple implementations of abstract service/class. And use certain one, according to some “settings”. I have found this example in the official documentation.