Skip to content

Commit bb59d94

Browse files
authored
Merge pull request Automattic#15349 from SethFalco/patch-1
docs: adds Model#count to list of fns callback removed from
2 parents 9180d02 + 28985da commit bb59d94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/migrating_to_7.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ They always return promises.
106106
* `Model.aggregate`
107107
* `Model.bulkWrite`
108108
* `Model.cleanIndexes`
109+
* `Model.count`
109110
* `Model.countDocuments`
110111
* `Model.create`
111112
* `Model.createCollection`
@@ -130,6 +131,7 @@ They always return promises.
130131
* `Model.syncIndexes`
131132
* `Model.updateMany`
132133
* `Model.updateOne`
134+
* `Query.prototype.count`
133135
* `Query.prototype.find`
134136
* `Query.prototype.findOne`
135137
* `Query.prototype.findOneAndDelete`
@@ -156,7 +158,7 @@ conn.startSession(function(err, session) {
156158
// After
157159
const session = await conn.startSession();
158160
// Or:
159-
conn.startSession().then(sesson => { /* ... */ });
161+
conn.startSession().then(session => { /* ... */ });
160162

161163
// With error handling
162164
try {

0 commit comments

Comments
 (0)