Skip to content

Commit bb19246

Browse files
committed
style(model): add "ReadPreference" as possible for "opts.readPreference" to "Model.mapReduce"
also adds a description
1 parent 9c129c0 commit bb19246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4035,7 +4035,7 @@ function _update(model, op, conditions, doc, options, callback) {
40354035
*
40364036
* @param {Object} opts an object specifying map-reduce options
40374037
* @param {Boolean} [opts.verbose=false] provide statistics on job execution time
4038-
* @param {String} [opts.readPreference]
4038+
* @param {ReadPreference|String} [opts.readPreference] a read-preference string or a read-preference instance
40394039
* @param {Boolean} [opts.jsMode=false] it is possible to make the execution stay in JS. Provided in MongoDB > 2.0.X
40404040
* @param {Object} [opts.scope] scope variables exposed to map/reduce/finalize during execution
40414041
* @param {Function} [opts.finalize] finalize function

0 commit comments

Comments
 (0)