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.1.8 to 0.1.9

2

package.json
{
"name": "ag-grid-mongo-query-builder",
"version": "0.1.8",
"version": "0.1.9",
"description": "Utility to generate Mongo DB aggregation pipeline queries starting from AgGrid server side params",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -424,2 +424,8 @@ //const mongoose = require('mongoose');

console.log('final match query in grouping:',JSON.stringify(_finalMatchQuery));
const groupProjection = {};
rowGroupCols.map(groupsCol => {
groupProjection[groupsCol.id] = 1;
});
let projectionObj = {"$project" : groupProjection};
const grouingPipelineQuery = [

@@ -429,6 +435,18 @@ ..._finalMatchQuery,

{"$replaceRoot":{"newRoot":"$doc"}},
projectionObj
];
console.log('grouping pipeline:',JSON.stringify(grouingPipelineQuery));
return grouingPipelineQuery;
// console.log('===============excessIndex');
// console.log(excessIndex);
// console.log(rowGroupCols.length);
// console.log(groupKeys.length);
if(rowGroupCols.length - groupKeys.length <= 0) {
return [..._finalMatchQuery];
} else {
return grouingPipelineQuery;
}
// console.log('grouping pipeline:',JSON.stringify(grouingPipelineQuery));
// return grouingPipelineQuery;
}

@@ -435,0 +453,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