From 69c1f6c1429d2be5fdc625d4ba90bd332dc217ca Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sun, 26 Dec 2021 21:30:51 -0500 Subject: [PATCH] docs(models): fix up nModified example for 5.x Fix #11055 --- docs/models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/models.md b/docs/models.md index 476546f8fd0..257ea18bdce 100644 --- a/docs/models.md +++ b/docs/models.md @@ -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 }); ```