File tree 1 file changed +3
-1
lines changed
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.
106
106
* ` Model.aggregate `
107
107
* ` Model.bulkWrite `
108
108
* ` Model.cleanIndexes `
109
+ * ` Model.count `
109
110
* ` Model.countDocuments `
110
111
* ` Model.create `
111
112
* ` Model.createCollection `
@@ -130,6 +131,7 @@ They always return promises.
130
131
* ` Model.syncIndexes `
131
132
* ` Model.updateMany `
132
133
* ` Model.updateOne `
134
+ * ` Query.prototype.count `
133
135
* ` Query.prototype.find `
134
136
* ` Query.prototype.findOne `
135
137
* ` Query.prototype.findOneAndDelete `
@@ -156,7 +158,7 @@ conn.startSession(function(err, session) {
156
158
// After
157
159
const session = await conn .startSession ();
158
160
// Or:
159
- conn .startSession ().then (sesson => { /* ... */ });
161
+ conn .startSession ().then (session => { /* ... */ });
160
162
161
163
// With error handling
162
164
try {
You can’t perform that action at this time.
0 commit comments