File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
157159const session = await conn .startSession ();
158160// Or:
159- conn .startSession ().then (sesson => { /* ... */ });
161+ conn .startSession ().then (session => { /* ... */ });
160162
161163// With error handling
162164try {
You can’t perform that action at this time.
0 commit comments