@@ -25,7 +25,7 @@ Calls the MongoDB [`aggregate()`](https://mongodb.github.io/node-mongodb-native/
2525| Name | Type | Attribute |
2626| --- | --- | --- |
2727| ` pipeline ` | ` Array<Record<string, unknown>> ` | required |
28- | ` options ` | ` CollectionAggregationOptions ` | optional |
28+ | ` options ` | ` AggregateOptions ` | optional |
2929
3030** Returns:**
3131
@@ -49,12 +49,12 @@ Calls the MongoDB [`bulkWrite()`](https://mongodb.github.io/node-mongodb-native/
4949
5050| Name | Type | Attribute |
5151| --- | --- | --- |
52- | ` operations ` | ` Array<BulkWriteOperation <TSchema>> ` | required |
53- | ` options ` | ` CollectionBulkWriteOptions ` | optional |
52+ | ` operations ` | ` Array<AnyBulkWriteOperation <TSchema>> ` | required |
53+ | ` options ` | ` BulkWriteOptions ` | optional |
5454
5555** Returns:**
5656
57- [ ` Promise<BulkWriteOpResultObject > ` ] ( https://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#~BulkWriteOpResult )
57+ [ ` Promise<BulkWriteResult > ` ] ( https://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#~BulkWriteOpResult )
5858
5959** Example:**
6060
@@ -88,8 +88,8 @@ Calls the MongoDB [`countDocuments()`](https://mongodb.github.io/node-mongodb-na
8888
8989| Name | Type | Attribute |
9090| --- | --- | --- |
91- | ` filter ` | ` FilterQuery <TSchema>` | required |
92- | ` options ` | ` MongoCountPreferences ` | optional |
91+ | ` filter ` | ` Filter <TSchema>` | required |
92+ | ` options ` | ` CountDocumentsOptions ` | optional |
9393
9494** Returns:**
9595
@@ -111,12 +111,12 @@ Calls the MongoDB [`deleteMany()`](https://mongodb.github.io/node-mongodb-native
111111
112112| Name | Type | Attribute |
113113| --- | --- | --- |
114- | ` filter ` | ` FilterQuery <TSchema>` | required |
115- | ` options ` | ` CommonOptions ` | optional |
114+ | ` filter ` | ` Filter <TSchema>` | required |
115+ | ` options ` | ` DeleteOptions ` | optional |
116116
117117** Returns:**
118118
119- [ ` Promise<DeleteWriteOpResultObject > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~deleteWriteOpResult )
119+ [ ` Promise<DeleteResult > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~deleteWriteOpResult )
120120
121121** Example:**
122122
@@ -133,12 +133,12 @@ Calls the MongoDB [`deleteOne()`](https://mongodb.github.io/node-mongodb-native/
133133
134134| Name | Type | Attribute |
135135| --- | --- | --- |
136- | ` filter ` | ` FilterQuery <TSchema>` | required |
137- | ` options ` | ` CommonOptions ` | optional |
136+ | ` filter ` | ` Filter <TSchema>` | required |
137+ | ` options ` | ` DeleteOptions ` | optional |
138138
139139** Returns:**
140140
141- [ ` Promise<DeleteWriteOpResultObject > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~deleteWriteOpResult )
141+ [ ` Promise<DeleteResult > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~deleteWriteOpResult )
142142
143143** Example:**
144144
@@ -156,8 +156,8 @@ Calls the MongoDB [`distinct()`](https://mongodb.github.io/node-mongodb-native/3
156156| Name | Type | Attribute |
157157| --- | --- | --- |
158158| ` key ` | ` keyof TSchema ` | required |
159- | ` filter ` | ` FilterQuery <TSchema>` | optional |
160- | ` options ` | ` MongoDistinctPreferences ` | optional |
159+ | ` filter ` | ` Filter <TSchema>` | optional |
160+ | ` options ` | ` DistinctOptions ` | optional |
161161
162162** Returns:**
163163
@@ -180,8 +180,8 @@ The result type (`TProjected`) takes into account the projection for this query
180180
181181| Name | Type | Attribute |
182182| --- | --- | --- |
183- | ` filter ` | ` FilterQuery <TSchema>` | required |
184- | ` options ` | ` FindOneOptions <TSchema>` | optional |
183+ | ` filter ` | ` Filter <TSchema>` | required |
184+ | ` options ` | ` FindOptions <TSchema>` | optional |
185185
186186** Returns:**
187187
@@ -214,7 +214,7 @@ The result type (`TProjected`) takes into account the projection for this query
214214| Name | Type | Attribute |
215215| --- | --- | --- |
216216| ` id ` | ` string \| ObjectId ` | required |
217- | ` options ` | ` FindOneOptions <TSchema>` | optional |
217+ | ` options ` | ` FindOptions <TSchema>` | optional |
218218
219219** Returns:**
220220
@@ -246,8 +246,8 @@ The result type (`TProjected`) takes into account the projection for this query
246246
247247| Name | Type | Attribute |
248248| --- | --- | --- |
249- | ` filter ` | ` FilterQuery <TSchema>` | required |
250- | ` options ` | ` FindOneOptions <TSchema>` | optional |
249+ | ` filter ` | ` Filter <TSchema>` | required |
250+ | ` options ` | ` FindOptions <TSchema>` | optional |
251251
252252** Returns:**
253253
@@ -279,9 +279,9 @@ The result type (`TProjected`) takes into account the projection for this query
279279
280280| Name | Type | Attribute |
281281| --- | --- | --- |
282- | ` filter ` | ` FilterQuery <TSchema>` | required |
283- | ` update ` | ` UpdateQuery <TSchema>` | required |
284- | ` options ` | ` FindOneAndUpdateOption<TSchema> ` | optional |
282+ | ` filter ` | ` Filter <TSchema>` | required |
283+ | ` update ` | ` UpdateFilter <TSchema>` | required |
284+ | ` options ` | ` FindOneAndUpdateOptions ` | optional |
285285
286286** Returns:**
287287
@@ -316,7 +316,7 @@ Calls the MongoDB [`insertMany()`](https://mongodb.github.io/node-mongodb-native
316316| Name | Type | Attribute |
317317| --- | --- | --- |
318318| ` documents ` | ` Array<TSchema> ` | required |
319- | ` options ` | ` CollectionInsertManyOptions ` | optional |
319+ | ` options ` | ` BulkWriteOptions ` | optional |
320320
321321** Returns:**
322322
@@ -341,7 +341,7 @@ Calls the MongoDB [`insertOne()`](https://mongodb.github.io/node-mongodb-native/
341341| Name | Type | Attribute |
342342| --- | --- | --- |
343343| ` document ` | ` TSchema ` | required |
344- | ` options ` | ` CollectionInsertOneOptions ` | optional |
344+ | ` options ` | ` InsertOneOptions ` | optional |
345345
346346** Returns:**
347347
@@ -365,13 +365,13 @@ Calls the MongoDB [`updateMany()`](https://mongodb.github.io/node-mongodb-native
365365
366366| Name | Type | Attribute |
367367| --- | --- | --- |
368- | ` filter ` | ` FilterQuery <TSchema>` | required |
369- | ` update ` | ` UpdateQuery <TSchema>` | required |
370- | ` options ` | ` UpdateManyOptions ` | optional |
368+ | ` filter ` | ` Filter <TSchema>` | required |
369+ | ` update ` | ` UpdateFilter <TSchema>` | required |
370+ | ` options ` | ` UpdateOptions ` | optional |
371371
372372** Returns:**
373373
374- [ ` Promise<UpdateWriteOpResult > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~updateWriteOpResult )
374+ [ ` Promise<UpdateResult > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~updateWriteOpResult )
375375
376376** Example:**
377377
@@ -391,13 +391,13 @@ Calls the MongoDB [`updateOne()`](https://mongodb.github.io/node-mongodb-native/
391391
392392| Name | Type | Attribute |
393393| --- | --- | --- |
394- | ` filter ` | ` FilterQuery <TSchema>` | required |
395- | ` update ` | ` UpdateQuery <TSchema>` | required |
396- | ` options ` | ` UpdateOneOptions ` | optional |
394+ | ` filter ` | ` Filter <TSchema>` | required |
395+ | ` update ` | ` UpdateFilter <TSchema>` | required |
396+ | ` options ` | ` UpdateOptions ` | optional |
397397
398398** Returns:**
399399
400- [ ` Promise<UpdateWriteOpResult > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~updateWriteOpResult )
400+ [ ` Promise<UpdateResult > ` ] ( https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#~updateWriteOpResult )
401401
402402** Example:**
403403
@@ -417,9 +417,8 @@ Calls the MongoDB [`findOneAndUpdate()`](https://mongodb.github.io/node-mongodb-
417417
418418| Name | Type | Attribute |
419419| --- | --- | --- |
420- | ` filter ` | ` FilterQuery<TSchema> ` | required |
421- | ` update ` | ` UpdateQuery<TSchema> ` | required |
422- | ` options ` | ` UpdateOneOptions ` | optional |
420+ | ` filter ` | ` Filter<TSchema> ` | required |
421+ | ` update ` | ` UpdateFilter<TSchema> ` | required |
423422
424423** Returns:**
425424
0 commit comments