Comparing version 1.4.9 to 1.4.10
{ | ||
"name": "mongot", | ||
"version": "1.4.9", | ||
"version": "1.4.10", | ||
"description": "MongoT is a modern ODM library for MongoDb.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -127,3 +127,9 @@ "use strict"; | ||
aggregate(pipeline, options) { | ||
return this.queue(collection => collection.aggregate(this.normalizeQuery(pipeline), options)); | ||
const _pipeline = pipeline.map(x => { | ||
if ('$match' in x) { | ||
x['$match'] = this.normalizeQuery(x['$match']); | ||
} | ||
return x; | ||
}); | ||
return this.queue(collection => collection.aggregate(_pipeline, options)); | ||
} | ||
@@ -130,0 +136,0 @@ /** |
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
136356
1938