In a larger application, it makes sense to organize your application into multiple modules that split up your code into features and related capabilities.
To define a module, you have to register all of the
- Services that will be instantiated by the Nest.js injector as Providers
- Controllers that will require the Providers as Controllers
- Controllers exported by another module as imports
Providers can be injected into: