Skip to content

Commit

Permalink
docs(models): fix up nModified example for 5.x
Browse files Browse the repository at this point in the history
Fix #11055
  • Loading branch information
vkarpov15 committed Dec 27, 2021
1 parent 4cfc4d6 commit 69c1f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ database without returning them to your application. See the

```javascript
Tank.updateOne({ size: 'large' }, { name: 'T-90' }, function(err, res) {
// Updated at most one doc, `res.modifiedCount` contains the number
// Updated at most one doc, `res.nModified` contains the number
// of docs that MongoDB updated
});
```
Expand Down

0 comments on commit 69c1f6c

Please sign in to comment.