Skip to content

Commit dd49bc5

Browse files
docs: add upgrade notes for mapReduce
1 parent e62e357 commit dd49bc5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

etc/notes/CHANGES_5.0.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ The following is a detailed collection of the changes in the major v5 release of
1616

1717
## Changes
1818

19+
### `Collection.mapReduce()` helper removed
20+
21+
The `mapReduce` helper has been removed from the `Collection` class. The `mapReduce` operation has been
22+
deprecated in favor of the aggregation pipeline since MongoDB server version 5.0. It is recommended
23+
to migrate code that uses `Collection.mapReduce` to use the aggregation pipeline.
24+
25+
If the `mapReduce` command must be used, the `Db.command()` helper can be used to run the raw
26+
`mapReduce` command.
27+
1928
### `AddUserOptions.digestPassword` removed
2029

2130
The `digestPassword` option has been removed from the add user helper.

0 commit comments

Comments
 (0)