title: NestJS Request Scoped Multitenancy for Multiple Databases
body: <p>Looking to implement a multi-tenant NestJS solution using the new request injection scope feature of NestJS 6.</p>
  
  <p>For any given service I assume I could do something like this:</p>
  
  <pre><code>@Injectable({scope: Scope.REQUEST})
  export class ReportService implements OnModuleInit { ... }
  </code></pre>
  
  <p>then, in the constructor, determine the tenant from the request, connect to the appropriate database, and instantiate repositories for the new connection.</p>
  
  <p>I'm wondering if this is the most straightforward way to go about it?</p>
  
  <p>Instead of updating each service, is it possible to override the connection provider and scope <em>that</em> to the request?</p>