Mongoose 7.6.11 released:
🛠️ Avoid match function filtering out null values in populate result
🛠️ Support setting discriminator options in Schema.prototype.discriminator()
Full changelog: github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
Mongoose 6.12.8 (legacy) released
🛠️ Handle virtuals that are stored as objects but getter returns string with toJSON
🛠️ Consistently set wasPopulated to object with value property rather than boolean
Full changelog github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
Mongoose 8.3.1 released
🛠️ Make update minimization unset property rather than setting to null
🛠️ Make Model.recompileSchema() also re-apply discriminators
Full changelog: github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
We prefer iterating over cursors when working with data sets too big to fit into memory. Avoid aggregation framework
Cursor loops are easier to read and debug. A bit slower, but worth the cost
#NodeJS#MongoDB
Mongoose copies non-conflicting schema options when you call `add()` with a schema.
That means you can define additional schema options when composing schemas 👍
#NodeJS#MongoDB
We make heavy use of Mongoose virtuals to minimize frontend logic
Write one Mongoose virtual, means all clients can reuse the same logic, even if iOS or Kotlin
#NodeJS
Mongoose schema `clone()`, `pick()`, and `add()` makes it easy to reuse paths from one schema in a new schema
Take advertiser schema's `_id` and `name`, add a `$vector` property, done ⭐
#NodeJS#MongoDB