@synatic/sql-to-mongo
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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 @@ } |
@@ -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", |
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
202335
4162