Comparing version 2.3.6 to 2.4.0
@@ -66,3 +66,3 @@ var q = require('q'); | ||
count: function (query, options) { | ||
query = assign({}, query, definition.where); | ||
query = assign({}, definition.where, query); | ||
options = options || {}; | ||
@@ -79,3 +79,3 @@ options.count = true; | ||
find: function (query, options) { | ||
query = assign({}, query, definition.where); | ||
query = assign({}, definition.where, query); | ||
options = options || {}; | ||
@@ -94,3 +94,3 @@ var collection = definition.collection; | ||
findOne: function (query, options) { | ||
query = assign({}, query, definition.where); | ||
query = assign({}, definition.where, query); | ||
options = options || {}; | ||
@@ -111,3 +111,3 @@ options.findOne = true; | ||
update: function (query, update, options) { | ||
query = assign({}, query, definition.where); | ||
query = assign({}, definition.where, query); | ||
options = defaults(options, { autoSet: true }); | ||
@@ -124,3 +124,3 @@ var collection = definition.collection; | ||
remove: function (query, options) { | ||
query = assign({}, query, definition.where); | ||
query = assign({}, definition.where, query); | ||
options = options || {}; | ||
@@ -133,3 +133,3 @@ var collection = definition.collection; | ||
distinct: function (key, query, options) { | ||
query = assign({}, query, definition.where); | ||
query = assign({}, definition.where, query); | ||
options = options || {}; | ||
@@ -148,3 +148,3 @@ var collection = definition.collection; | ||
project: function (query, value, options) { | ||
query = assign({}, query, definition.where); | ||
query = assign({}, definition.where, query); | ||
options = options || {}; | ||
@@ -151,0 +151,0 @@ var collection = definition.collection; |
{ | ||
"name": "cosa", | ||
"version": "2.3.6", | ||
"version": "2.4.0", | ||
"description": "Cosa Models for MongoDB", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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