Comparing version 2.1.0 to 2.2.0
@@ -0,1 +1,5 @@ | ||
2.2.0 / 2017-01-08 | ||
================== | ||
* added; updateOne and updateMany functions | ||
2.1.0 / 2016-12-22 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -11,2 +11,4 @@ 'use strict'; | ||
, 'update' | ||
, 'updateMany', | ||
, 'updateOne' | ||
, 'remove' | ||
@@ -43,2 +45,1 @@ , 'count' | ||
} | ||
@@ -66,2 +66,18 @@ 'use strict'; | ||
/** | ||
* update(match, update, options, function(err[, result])) | ||
*/ | ||
NodeCollection.prototype.updateMany = function (match, update, options, cb) { | ||
this.collection.updateMany(match, update, options, cb); | ||
} | ||
/** | ||
* update(match, update, options, function(err[, result])) | ||
*/ | ||
NodeCollection.prototype.updateOne = function (match, update, options, cb) { | ||
this.collection.updateOne(match, update, options, cb); | ||
} | ||
/** | ||
* remove(match, options, function(err[, result]) | ||
@@ -109,2 +125,1 @@ */ | ||
module.exports = exports = NodeCollection; | ||
{ | ||
"name": "mquery", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Expressive query building for MongoDB", | ||
@@ -5,0 +5,0 @@ "main": "lib/mquery.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
219754
5749