bridge-mongo
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -19,3 +19,3 @@ "use strict"; | ||
const realProj = {}; | ||
Object.entries(([key, value]) => { | ||
Object.entries(proj).forEach(([key, value]) => { | ||
if (value.$assign) | ||
@@ -27,3 +27,3 @@ realProj[key] = value.$assign; | ||
console.log(realProj); | ||
return new Aggregate(this.mongoModel, [...this.pipe, { $addFields: proj }]); | ||
return new Aggregate(this.mongoModel, [...this.pipe, { $addFields: realProj }]); | ||
}; | ||
@@ -30,0 +30,0 @@ match = (match) => new Aggregate(this.mongoModel, [...this.pipe, { $match: match }]); |
{ | ||
"name": "bridge-mongo", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "A mongodb ORM on top of mongoose that match perfectly with the bridgets framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/Lib/index.js", |
Sorry, the diff of this file is not supported yet
77083