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

@synatic/sql-to-mongo

Package Overview
Dependencies
Maintainers
10
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synatic/sql-to-mongo - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

14

lib/make/makeJoinForPipeline.js

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

} else if (joinHint === 'unwind') {
pipeline.push({$unwind: `$${toAs || toTable}`});
pipeline.push({
$unwind: {
path: `$${toAs || toTable}`,
preserveNullAndEmptyArrays: true,
},
});
}

@@ -164,3 +169,8 @@ }

} else if (joinHint === 'unwind') {
pipeline.push({$unwind: `$${toAs || toTable}`});
pipeline.push({
$unwind: {
path: `$${toAs || toTable}`,
preserveNullAndEmptyArrays: true,
},
});
}

@@ -167,0 +177,0 @@ }

5

lib/make/projectColumnParser.js

@@ -68,3 +68,6 @@ const getParsedValueFromBinaryExpressionModule = require('./getParsedValueFromBinaryExpression');

result.unwind.push({
$unwind: `$${column.as}`,
$unwind: {
path: `$${column.as}`,
preserveNullAndEmptyArrays: true,
},
});

@@ -71,0 +74,0 @@ return;

{
"name": "@synatic/sql-to-mongo",
"version": "1.0.1",
"version": "1.0.2",
"description": "Convert SQL 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