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

@synatic/noql

Package Overview
Dependencies
Maintainers
0
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synatic/noql - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

7

lib/make/makeJoinForPipeline.js

@@ -161,8 +161,5 @@ const makeFilterConditionModule = require('./makeFilterCondition');

}
if (joinHints.includes('nooptimize')) {
lookupPipeline.push({$match: {$expr: joinQuery}});
} else {
lookupPipeline.unshift({$match: {$expr: joinQuery}});
}
lookupPipeline.push({$match: {$expr: joinQuery}});
pipeline.push({

@@ -169,0 +166,0 @@ $lookup: {

@@ -11,2 +11,3 @@ const {snakeCase} = require('lodash');

const optimizationsEnabled = true;
/**

@@ -21,2 +22,9 @@ *

function optimizeJoinAndWhere(pipeline, pipeLineJoin, wherePiece, context) {
if (!optimizationsEnabled || context.joinHints.includes('nooptimize')) {
pushToPipeline({
wasOptimised: false,
leftOverMatches: [],
});
return;
}
const originalPipeline = cloneDeep(pipeline);

@@ -23,0 +31,0 @@ const originalPipelineJoin = cloneDeep(pipeLineJoin);

{
"name": "@synatic/noql",
"version": "4.1.1",
"version": "4.1.2",
"description": "Convert SQL statements to mongo queries or aggregates",

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

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