title: How to dynamically inject providers in NestJs
body: <p>My team is trying to identify a way to dynamically DI such that there can a bulk insertion point without a need to spell out + import each Module.</p>
  <pre><code>@Module({
    ...
    providers: [
      WorkerService,
      WorkerResolver,
      Worker2Service,
      Worker2Resolver........
    ]
  })
  </code></pre>
  <p>want to achieve</p>
  <pre><code>var allModules = ... // logic here to include all my resolvers, or all my services
  
  @Module({
    ...
    providers: [
      ...allModules
    ]
  })
  </code></pre>