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
Copy file name to clipboardExpand all lines: lib/bulk/common.js
+16
Original file line number
Diff line number
Diff line change
@@ -591,6 +591,7 @@ class FindOperators {
591
591
*
592
592
* @method
593
593
* @param {object} updateDocument An update field for an update operation. See {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-u u documentation}
594
+
* @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
594
595
* @throws {MongoError} If operation cannot be added to bulk write
595
596
* @return {OrderedBulkOperation|UnorderedBulkOperation} A reference to the parent BulkOperation
* @param {object} updateDocument An update field for an update operation. See {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-u u documentation}
624
+
* @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
619
625
* @throws {MongoError} If operation cannot be added to bulk write
620
626
* @return {OrderedBulkOperation|UnorderedBulkOperation} A reference to the parent BulkOperation
* @param {object} op The raw operation to perform.
917
+
* @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
* @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
691
691
* @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
692
692
* @param {ClientSession} [options.session] optional session to use for this operation
693
+
* @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
693
694
* @param {Collection~updateWriteOpCallback} [callback] The command result callback
694
695
* @return {Promise} returns Promise if no callback passed
* @param {boolean} [options.j=false] Specify a journal write concern.
729
730
* @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
730
731
* @param {ClientSession} [options.session] optional session to use for this operation
732
+
* @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
731
733
* @param {Collection~updateWriteOpCallback} [callback] The command result callback
732
734
* @return {Promise<Collection~updateWriteOpResult>} returns Promise if no callback passed
* @param {boolean} [options.j=false] Specify a journal write concern.
759
761
* @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
760
762
* @param {ClientSession} [options.session] optional session to use for this operation
763
+
* @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
761
764
* @param {Collection~updateWriteOpCallback} [callback] The command result callback
762
765
* @return {Promise<Collection~updateWriteOpResult>} returns Promise if no callback passed
* @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
800
803
* @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
801
804
* @param {ClientSession} [options.session] optional session to use for this operation
805
+
* @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
802
806
* @param {Collection~writeOpCallback} [callback] The command result callback
803
807
* @throws {MongoError}
804
808
* @return {Promise} returns Promise if no callback passed
0 commit comments