Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ag-grid-mongo-query-builder

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-grid-mongo-query-builder - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc