ag-grid-mongo-query-builder
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "ag-grid-mongo-query-builder", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Utility to generate Mongo DB aggregation pipeline queries starting from AgGrid server side params", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -392,6 +392,6 @@ //const mongoose = require('mongoose'); | ||
if(rowGroupCols.length > 0) { | ||
tempGroup = getPivotPipeline(pivotCols, rowGroupCols,aggregationArray, excessIndex, true); | ||
tempGroup = getPivotPipeline(pivotCols, rowGroupCols,aggregationArray, excessIndex, true, _finalMatchQuery); | ||
colsPipeline = getPivotColumnsPipeline(pivotCols); | ||
} else { | ||
tempGroup = getPivotPipeline(pivotCols, rowGroupCols,aggregationArray, excessIndex, false); | ||
tempGroup = getPivotPipeline(pivotCols, rowGroupCols,aggregationArray, excessIndex, false, _finalMatchQuery); | ||
colsPipeline = getPivotColumnsPipeline(pivotCols); | ||
@@ -416,3 +416,3 @@ | ||
function getPivotPipeline(pivotCols, rowGroupCols, aggregationArray, excessIndex, isGrouping) { | ||
function getPivotPipeline(pivotCols, rowGroupCols, aggregationArray, excessIndex, isGrouping, _finalMatchQuery) { | ||
@@ -442,2 +442,5 @@ let replaceRootObj = {"newRoot" : "$$ROOT"}; | ||
pivotFullPath.push(`|`); | ||
let matchQuery = {"$match" : {}}; | ||
matchQuery['$match'][eachPivotField.id] = {"$ne": null}; | ||
_finalMatchQuery.unshift(matchQuery); | ||
}); | ||
@@ -444,0 +447,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
27202
604