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.partial=false] Specify if the cursor should return partial results when querying against a sharded system
1367
1369
* @param {number} [options.maxTimeMS=null] Number of miliseconds to wait before aborting the query.
1368
1370
* @param {Collection~resultCallback} [callback] The command result callback
1369
1371
* @return {Promise} returns Promise if no callback passed
1370
-
* @deprecated use find().limit(1).next(function(err, doc){})
1371
1372
*/
1372
1373
Collection.prototype.findOne=function(){
1373
1374
varself=this;
@@ -2554,6 +2555,9 @@ function decorateWithCollation(command, self, options) {
2554
2555
* @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 >).
2555
2556
* @param {number} [options.maxTimeMS=null] maxTimeMS specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.
2556
2557
* @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
2558
+
* @param {boolean} [options.raw=false] Return document results as raw BSON buffers.
2559
+
* @param {boolean} [options.promoteLongs=true] Promotes Long values to number if they fit inside the 53 bits resolution.
2560
+
* @param {boolean} [options.promoteValues=true] Promotes BSON values to native types where possible, set to false to only receive wrapper types.
2557
2561
* @param {Collection~resultCallback} callback The command result callback
0 commit comments