NestJS · Senior · Question 8 of 75
How does ConfigurableModuleBuilder help when writing a reusable dynamic module?
- 1It converts a module to a microservice
- 2It publishes the module to npm
- ✓Correct answer: It generates
register/registerAsync(orforRootvariants) and an options token, with sync and async factory support
Explanation
Writing forRootAsync with useFactory, useClass and useExisting by hand is repetitive; the builder handles it consistently.