Skip to content

Commit

Permalink
Update docs/migrating_to_7.md
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <[email protected]>
  • Loading branch information
vkarpov15 and hasezoey authored Aug 20, 2024
1 parent bfb9cde commit dc4ffab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migrating_to_7.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ oid._bsontype; // 'ObjectId' in Mongoose 7, 'ObjectID' in older versions of Mong
Please update any places where you use `_bsontype` to check if an object is an ObjectId.
This may also affect libraries that use Mongoose.

## Removed mapReduce {#removed-mapreduce}
## Removed `mapReduce` {#removed-mapreduce}

MongoDB no longer supports `mapReduce`, so Mongoose 7 no longer has a `Model.mapReduce()` function.
Use the aggregation framework as a replacement for `mapReduce()`.
Expand Down

0 comments on commit dc4ffab

Please sign in to comment.