You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {boolean} [options.upsert=false] Update operation is an upsert.
1062
1062
* @param {boolean} [options.multi=false] Update one/all documents with operation.
1063
1063
* @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
1064
+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1064
1065
* @param {Collection~writeOpCallback} [callback] The command result callback
1065
1066
* @throws {MongoError}
1066
1067
* @return {Promise} returns Promise if no callback passed
* @param {boolean} [options.partial=false] Specify if the cursor should return partial results when querying against a sharded system
1374
1375
* @param {number} [options.maxTimeMS=null] Number of miliseconds to wait before aborting the query.
1376
+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1375
1377
* @param {Collection~resultCallback} [callback] The command result callback
1376
1378
* @return {Promise} returns Promise if no callback passed
* @param {number} [options.v=null] Specify the format version of the indexes.
1575
1577
* @param {number} [options.expireAfterSeconds=null] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
1576
1578
* @param {number} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
1579
+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1577
1580
* @param {Collection~resultCallback} [callback] The command result callback
1578
1581
* @return {Promise} returns Promise if no callback passed
* @param {number} [options.v=null] Specify the format version of the indexes.
1864
1867
* @param {number} [options.expireAfterSeconds=null] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
1865
1868
* @param {number} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
1869
+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1866
1870
* @param {Collection~resultCallback} [callback] The command result callback
1867
1871
* @return {Promise} returns Promise if no callback passed
1868
1872
*/
@@ -2564,6 +2568,7 @@ function decorateWithCollation(command, self, options) {
2564
2568
* @param {boolean} [options.promoteLongs=true] Promotes Long values to number if they fit inside the 53 bits resolution.
2565
2569
* @param {boolean} [options.promoteValues=true] Promotes BSON values to native types where possible, set to false to only receive wrapper types.
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
2567
2572
* @param {Collection~resultCallback} callback The command result callback
* @param {object} value The cursor collation options
584
+
* @param {object} value The cursor collation options (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
* @param {number} [options.size=null] The size of the capped collection in bytes.
552
552
* @param {number} [options.max=null] The maximum number of documents in the capped collection.
553
553
* @param {boolean} [options.autoIndexId=true] Create an index on the _id field of the document, True by default on MongoDB 2.2 or higher off for version < 2.2.
554
+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
554
555
* @param {Db~collectionResultCallback} [callback] The results callback
555
556
* @return {Promise} returns Promise if no callback passed
0 commit comments