From 2033a96562bc26295fd97e8da57194e6248e6aa9 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Thu, 10 Apr 2025 08:04:36 +0100 Subject: [PATCH 1/2] docs: adds Model#count to list of fns callback removed from --- docs/migrating_to_7.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/migrating_to_7.md b/docs/migrating_to_7.md index 4283c41b6df..990f02317b1 100644 --- a/docs/migrating_to_7.md +++ b/docs/migrating_to_7.md @@ -106,6 +106,7 @@ They always return promises. * `Model.aggregate` * `Model.bulkWrite` * `Model.cleanIndexes` +* `Model.count` * `Model.countDocuments` * `Model.create` * `Model.createCollection` @@ -130,6 +131,7 @@ They always return promises. * `Model.syncIndexes` * `Model.updateMany` * `Model.updateOne` +* `Query.prototype.count` * `Query.prototype.find` * `Query.prototype.findOne` * `Query.prototype.findOneAndDelete` From 28985da70c7673b408b00803d97d06c9fd3f1488 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Thu, 10 Apr 2025 08:12:55 +0100 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20fix=20typo=20sesson=20=E2=86=92=20s?= =?UTF-8?q?ession?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/migrating_to_7.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migrating_to_7.md b/docs/migrating_to_7.md index 990f02317b1..cb765bdeb77 100644 --- a/docs/migrating_to_7.md +++ b/docs/migrating_to_7.md @@ -158,7 +158,7 @@ conn.startSession(function(err, session) { // After const session = await conn.startSession(); // Or: -conn.startSession().then(sesson => { /* ... */ }); +conn.startSession().then(session => { /* ... */ }); // With error handling try {