Repository navigation
Highlights
- New
waitForModelInitoption, off by default. OnforRoot()/forRootAsync()it makes every model provider wait formodel.init(), the collection and index builds, before it resolves. On aforFeature()/forFeatureAsync()entry it overrides the connection's setting for that model and its discriminators. A failed build, such as a duplicate under a unique index, then fails the application's startup with the MongoDB error, instead of going unnoticed. See Wait for indexes.
Features
- feat(core): add an option to wait for model init by @kamilmysliwiec in #2967
Bug fixes
- fix(core): reuse models when a feature is imported more than once by @hicay in #2972
- fix(core): do not log a retry after the last connection attempt by @ofri-peretz in #2973
Full Changelog: 12.0.1...12.0.2