diff --git a/CHANGELOG.md b/CHANGELOG.md index 24e7d387972..842cb01d377 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +6.8.5 / 2023-01-23 +================== + * fix(query): correctly pass context when casting $elemMatch #12915 #12909 #12902 [MohOraby](https://github.com/MohOraby) + 6.8.4 / 2023-01-17 ================== * fix(collection): handle creating model when connection disconnected with bufferCommands = false #12889 diff --git a/docs/populate.md b/docs/populate.md index 05f6da8edcd..bdecb872ed2 100644 --- a/docs/populate.md +++ b/docs/populate.md @@ -883,7 +883,7 @@ Alternatively, you can check out the [mongoose-autopopulate plugin](http://npmjs

Transform populated documents

You can manipulate populated documents using the `transform` option. -If you specify a `transform` function, Mongoose will call this function on every populated document in the result wiwith two arguments: the populated document, and the original id used to populate the document. +If you specify a `transform` function, Mongoose will call this function on every populated document in the result with two arguments: the populated document, and the original id used to populate the document. This gives you more control over the result of the `populate()` execution. It is especially useful when you're populating multiple documents. diff --git a/package.json b/package.json index ee7a4410b7c..d47c2d427b9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mongoose", "description": "Mongoose MongoDB ODM", - "version": "6.8.4", + "version": "6.8.5", "author": "Guillermo Rauch ", "keywords": [ "mongodb",