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.noCursorTimeout] The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.
311
310
* @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
312
311
* @param {boolean} [options.allowDiskUse] Enables writing to temporary files on the server.
312
+
* @param {string|boolean} [options.explain] The verbosity mode for the explain output.
313
313
* @param {ClientSession} [options.session] optional session to use for this operation
* @param {boolean} [options.partial=false] Specify if the cursor should return partial results when querying against a sharded system
1064
1067
* @param {number} [options.maxTimeMS] Number of milliseconds to wait before aborting the query.
1065
1068
* @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1069
+
* @param {string|boolean} [options.explain] The verbosity mode for the explain output.
1066
1070
* @param {ClientSession} [options.session] optional session to use for this operation
1067
1071
* @param {Collection~resultCallback} [callback] The command result callback
1068
1072
* @return {Promise} returns Promise if no callback passed
* @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
1727
1734
* @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
1728
1735
* @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
1736
+
* @param {string|boolean} [options.explain] The verbosity mode for the explain output.
1729
1737
* @param {ClientSession} [options.session] An ptional session to use for this operation
1730
1738
* @param {Collection~findAndModifyCallback} [callback] The collection result callback
1731
1739
* @return {Promise<Collection~findAndModifyWriteOpResultObject>} returns Promise if no callback passed
@@ -1831,7 +1839,6 @@ Collection.prototype.findAndRemove = deprecate(function(query, sort, options, ca
1831
1839
* @param {number} [options.batchSize=1000] The number of documents to return per batch. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
1832
1840
* @param {object} [options.cursor] Return the query as cursor, on 2.6 > it returns as a real cursor on pre 2.6 it returns as an emulated cursor.
1833
1841
* @param {number} [options.cursor.batchSize=1000] Deprecated. Use `options.batchSize`
1834
-
* @param {string|boolean} [options.explain] The verbosity mode for the explain output.
1835
1842
* @param {boolean} [options.allowDiskUse=false] allowDiskUse lets the server know if it can use disk to store temporary results for the aggregation (requires mongodb 2.6 >).
1836
1843
* @param {number} [options.maxTimeMS] maxTimeMS specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.
1837
1844
* @param {number} [options.maxAwaitTimeMS] The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
@@ -1843,6 +1850,7 @@ Collection.prototype.findAndRemove = deprecate(function(query, sort, options, ca
1843
1850
* @param {object} [options.collation] Specify collation settings for operation. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
1844
1851
* @param {string} [options.comment] Add a comment to an aggregation command
1845
1852
* @param {string|object} [options.hint] Add an index selection hint to an aggregation command
1853
+
* @param {string|boolean} [options.explain] The verbosity mode for the explain output.
1846
1854
* @param {ClientSession} [options.session] optional session to use for this operation
1847
1855
* @param {Collection~aggregationCallback} callback The command result callback
0 commit comments