github nestjs/mongoose 12.0.2
Release 12.0.2

one hour ago

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

Don't miss a new mongoose release

NewReleases is sending notifications on new releases.