Closed thomasdom closed 2 years ago
Currently, this module does not support async registration.
Async registration would be useful for getting configuration variables from ConfigModule, among many other use cases.
ConfigModule
We should be able to register the module like this:
MeiliSearchModule.forRootAsync({ imports: [ConfigModule], inject: [ConfigService], useFactory: (configService: ConfigService) => ({ host: configService.get<string>('MEILISEARCH_HOST'), apiKey: configService.get<string>('MEILISEARCH_API_KEY'), }), }),
@lambrohan Do you still maintain this repository?
@thomasdom Yes. I'll add the async registration support very soon.
@thomasdom Just did the update. It should support async module registration now.
Currently, this module does not support async registration.
Async registration would be useful for getting configuration variables from
ConfigModule
, among many other use cases.We should be able to register the module like this: