title: In NestJS, how do you inject Dynamic modules async options to module internal imports?
body: <p>In <strong>Nestjs</strong> if I have a Dynamic Module <em>A</em> that accepts an <code>options</code> object as per forRootAsync logic, how do I inject that <code>options</code> to its imported modules? (lest's say <em>module A</em> imports <em>module B</em> which depends on some of Module A options) </p>
  
  <p>I know how to inject the options object to modules A <code>providers</code> but how do you inject it to Module A imported modules?</p>
  
  <p>note: to inject the options to module A imported providers I can wrap the options object using a <a href="https://docs.nestjs.com/fundamentals/custom-providers#value-providers-usevalue" rel="nofollow noreferrer">value provider</a> and use the inject capabilities of <a href="https://docs.nestjs.com/fundamentals/custom-providers#factory-providers-usefactory" rel="nofollow noreferrer">Factory providers</a>, to make it available to the provider </p>