mongoose-autopopulate
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -70,3 +70,5 @@ 'use strict'; | ||
const docVal = this.get(options.path); | ||
return docVal == null || pop.length !== docVal.length; | ||
return docVal == null || | ||
pop.length !== docVal.length || | ||
pop.some(v => v == null); | ||
} | ||
@@ -73,0 +75,0 @@ return true; |
{ | ||
"name": "mongoose-autopopulate", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "Always populate() certain fields in your mongoose schemas", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,3 +18,3 @@ # mongoose-autopopulate | ||
in your schema - your data will become unwieldy as the array grows and | ||
you will eventually hit the [16mb document size limit](http://docs.mongodb.org/manual/reference/limits/#BSON-Document-Size). | ||
you will eventually hit the [16 MB document size limit](http://docs.mongodb.org/manual/reference/limits/#BSON-Document-Size). | ||
In general, think carefully when designing your schemas. | ||
@@ -21,0 +21,0 @@ |
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
33608
199