Comparing version 0.0.36 to 0.0.37
@@ -280,3 +280,8 @@ /** | ||
MongoDB.prototype.count = function count(model, callback, filter) { | ||
var cond = buildWhere(filter); | ||
var cond = {}; | ||
if (filter && filter.where) { | ||
cond = buildWhere(filter.where); | ||
} else { | ||
cond = buildWhere(filter); | ||
} | ||
this.collection(model).count(cond, callback); | ||
@@ -283,0 +288,0 @@ }; |
{ | ||
"name": "caminte", | ||
"description": "ORM for every database: redis, mysql, neo4j, mongodb, rethinkdb, postgres, sqlite, tingodb", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Aleksej Gordejev", |
Sorry, the diff of this file is not supported yet
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
690436
13535