-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
Description
Across different documentation updateMany differs:
In:
https://github.com/mongodb/docs/blob/v4.2/source/tutorial/update-documents.txt
https://github.com/mongodb/docs/blob/v4.2/source/reference/method/db.collection.updateMany.txt
Somewherre is shown as:
```js
db.<collection>.updateMany({}, {$set: {a: 1);}}
```
{{}}
and somewhere as with brackets `[]`:
{{}}
```js
db.<collection>.updateMany({}, [ {$set: {a: 1 ]);}}
{{}}
Additionally, Mongoose documentation is missing about this command, and using the case without brackets silently changes no document.
```{{}}