From 4ced72b49eecde5a27ea768a006547b434b2867e Mon Sep 17 00:00:00 2001 From: Dan Aprahamian Date: Mon, 18 Dec 2017 11:44:37 -0500 Subject: [PATCH] docs(FindOperatorsUnordered): updating return types to self (#1619) Updating the return types of some functions to be FindOperatorsUnordered instead of UnorderedBulkOperation Fixes NODE-1225 --- lib/bulk/unordered.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/bulk/unordered.js b/lib/bulk/unordered.js index ca9e36bb6f5..9c9125c1556 100644 --- a/lib/bulk/unordered.js +++ b/lib/bulk/unordered.js @@ -45,9 +45,9 @@ var FindOperatorsUnordered = function(self) { * Add a single update document to the bulk operation * * @method - * @param {object} doc update operations + * @param {object} updateDocument update operations * @throws {MongoError} - * @return {UnorderedBulkOperation} + * @return {FindOperatorsUnordered} */ FindOperatorsUnordered.prototype.update = function(updateDocument) { // Perform upsert @@ -71,9 +71,9 @@ FindOperatorsUnordered.prototype.update = function(updateDocument) { * Add a single update one document to the bulk operation * * @method - * @param {object} doc update operations + * @param {object} updateDocument update operations * @throws {MongoError} - * @return {UnorderedBulkOperation} + * @return {FindOperatorsUnordered} */ FindOperatorsUnordered.prototype.updateOne = function(updateDocument) { // Perform upsert @@ -97,9 +97,9 @@ FindOperatorsUnordered.prototype.updateOne = function(updateDocument) { * Add a replace one operation to the bulk operation * * @method - * @param {object} doc the new document to replace the existing one with + * @param {object} updateDocument the new document to replace the existing one with * @throws {MongoError} - * @return {UnorderedBulkOperation} + * @return {FindOperatorsUnordered} */ FindOperatorsUnordered.prototype.replaceOne = function(updateDocument) { this.updateOne(updateDocument); @@ -122,7 +122,7 @@ FindOperatorsUnordered.prototype.upsert = function() { * * @method * @throws {MongoError} - * @return {UnorderedBulkOperation} + * @return {FindOperatorsUnordered} */ FindOperatorsUnordered.prototype.removeOne = function() { // Establish the update command @@ -142,7 +142,7 @@ FindOperatorsUnordered.prototype.removeOne = function() { * * @method * @throws {MongoError} - * @return {UnorderedBulkOperation} + * @return {FindOperatorsUnordered} */ FindOperatorsUnordered.prototype.remove = function() { // Establish the update command @@ -325,7 +325,7 @@ var define = (UnorderedBulkOperation.define = new Define( /** * Add a single insert document to the bulk operation * - * @param {object} doc the document to insert + * @param {object} document the document to insert * @throws {MongoError} * @return {UnorderedBulkOperation} */