@synatic/sql-to-mongo
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -34,3 +34,3 @@ const makeFilterConditionModule = require('./makeFilterCondition'); | ||
let toTable = join.table || ''; | ||
const toAs = join.as; | ||
let toAs = join.as || ''; | ||
@@ -49,2 +49,13 @@ let joinHint = null; | ||
if (toAs.toLowerCase().endsWith('|first')) { | ||
joinHint = 'first'; | ||
toAs = toAs.substring(0, toAs.length - 6); | ||
} else if (toAs.toLowerCase().endsWith('|last')) { | ||
joinHint = 'last'; | ||
toAs = toAs.substring(0, toAs.length - 5); | ||
} else if (toTable.toLowerCase().endsWith('|unwind')) { | ||
joinHint = 'unwind'; | ||
toAs = toAs.substring(0, toAs.length - 7); | ||
} | ||
if ( | ||
@@ -51,0 +62,0 @@ join.table && |
{ | ||
"name": "@synatic/sql-to-mongo", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"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
212210
4499