@synatic/sql-to-mongo
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -184,2 +184,3 @@ const getParsedValueFromBinaryExpressionModule = require('./getParsedValueFromBinaryExpression'); | ||
} | ||
if (!column.as) { | ||
@@ -192,2 +193,10 @@ throw new Error( | ||
} | ||
if (column.expr.type === 'number' || column.expr.type === 'bool') { | ||
result.parsedProject.$project[column.as] = { | ||
$literal: column.expr.value, | ||
}; | ||
return; | ||
} | ||
if (column.expr.type) { | ||
@@ -194,0 +203,0 @@ throw new Error(`Not Supported:${column.expr.type}`); |
{ | ||
"name": "@synatic/sql-to-mongo", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"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
209127
4412