title: Nestjs - Typeorm custom connection name
body: <p>I have a Nestjs db Module and it works perfectly</p>
  <pre><code>@Module({
      imports: [
          TypeOrmModule.forRootAsync({
              useFactory: () =&gt; {
                  return {
                      name: 'default', // &lt;=== here
                      type: &quot;mysql&quot;,
                      ...
                  };
              },
          }),
  
          TypeOrmModule.forFeature(entities, 'default'), // &lt;=== here
      ],
      exports: [TypeOrmModule],
  })
  export class DBModule {}
  </code></pre>
  <p>if I change the connection name to anything else rather then 'default' say 'test' I get an error</p>
  <pre><code>@Module({
      imports: [
          TypeOrmModule.forRootAsync({
              useFactory: () =&gt; {
                  return {
                      name: 'test', // &lt;=== here
                      type: &quot;mysql&quot;,
                      ...
                  };
              },
          }),
  
          TypeOrmModule.forFeature(entities, 'test'), // &lt;=== here
      ],
      exports: [TypeOrmModule],
  })
  export class DBModule {}
  </code></pre>
  <pre><code>[Nest] 10746   - 05/15/2021, 5:55:34 PM   [ExceptionHandler] Nest can't resolve dependencies of the test_UserEntityRepository (?). Please make sure that the argument testConnection at index [0] is available in the TypeOrmModule context.
  
  Potential solutions:
  - If testConnection is a provider, is it part of the current TypeOrmModule?
  - If testConnection is exported from a separate @Module, is that module imported within TypeOrmModule?
    @Module({
      imports: [ /* the Module containing testConnection */ ]
    })
  </code></pre>
  <p>The error seams to only show up if I use TypeOrmModule.forRootAsync
  For TypeOrmModule.forRoot if works!</p>
  <p>Is there any different way to indicate the connection name? I need to add another connection and can't do it because of this error. Really would like to use 'forRootAsync'</p>