Skip to content

Commit 4df8399

Browse files
committed
docs(drop): document writeConcern usage for drop methods
Fixes NODE-1631
1 parent d0866b0 commit 4df8399

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/collection.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,10 @@ Collection.prototype.rename = function(newName, options, callback) {
10511051
*
10521052
* @method
10531053
* @param {object} [options] Optional settings.
1054+
* @param {WriteConcern} [options.writeConcern] A full WriteConcern object
1055+
* @param {(number|string)} [options.w] The write concern
1056+
* @param {number} [options.wtimeout] The write concern timeout
1057+
* @param {boolean} [options.j] The journal write concern
10541058
* @param {ClientSession} [options.session] optional session to use for this operation
10551059
* @param {Collection~resultCallback} [callback] The results callback
10561060
* @return {Promise} returns Promise if no callback passed

lib/db.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,10 @@ Db.prototype.renameCollection = function(fromCollection, toCollection, options,
687687
* @method
688688
* @param {string} name Name of collection to drop
689689
* @param {Object} [options] Optional settings
690+
* @param {WriteConcern} [options.writeConcern] A full WriteConcern object
691+
* @param {(number|string)} [options.w] The write concern
692+
* @param {number} [options.wtimeout] The write concern timeout
693+
* @param {boolean} [options.j] The journal write concern
690694
* @param {ClientSession} [options.session] optional session to use for this operation
691695
* @param {Db~resultCallback} [callback] The results callback
692696
* @return {Promise} returns Promise if no callback passed

0 commit comments

Comments
 (0)