Skip to content

Release 12.0.2

Latest

Choose a tag to compare

@kamilmysliwiec kamilmysliwiec released this 26 Nov 11:24
49d3897

Highlights

  • New waitForModelInit option, off by default. On forRoot() / forRootAsync() it makes every model provider wait for model.init(), the collection and index builds, before it resolves. On a forFeature() / 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

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