drapcode-utility 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -368,11 +368,12 @@ var queryToMongo = function (query, requiredExternal, externalParams, constants,
|
|
|
368
368
|
],
|
|
369
369
|
};
|
|
370
370
|
if (key == drapcode_constant_1.EQUALS) {
|
|
371
|
+
console.log("I am query parser");
|
|
371
372
|
return _x = {},
|
|
373
|
+
// TODO:Handle Based of Field Type
|
|
372
374
|
_x[field] = fieldType === "boolean" && fieldValue
|
|
373
375
|
? JSON.parse(fieldValue)
|
|
374
|
-
: //
|
|
375
|
-
// : !isNaN(fieldValue)
|
|
376
|
+
: // : !isNaN(fieldValue)
|
|
376
377
|
// ? +fieldValue
|
|
377
378
|
fieldValue,
|
|
378
379
|
_x;
|
|
@@ -444,15 +444,17 @@ var queryToMongo = function (query, requiredExternal, externalParams, constants,
|
|
|
444
444
|
(_x = {}, _x[field] = { $exists: false }, _x),
|
|
445
445
|
],
|
|
446
446
|
};
|
|
447
|
-
if (key == drapcode_constant_1.EQUALS)
|
|
447
|
+
if (key == drapcode_constant_1.EQUALS) {
|
|
448
|
+
console.log("I am query parser new");
|
|
448
449
|
return _y = {},
|
|
450
|
+
// TODO:Handle Based of Field Type
|
|
449
451
|
_y[field] = fieldType === "boolean" && fieldValue
|
|
450
452
|
? JSON.parse(fieldValue)
|
|
451
|
-
: //
|
|
452
|
-
// : !isNaN(fieldValue)
|
|
453
|
+
: // : !isNaN(fieldValue)
|
|
453
454
|
// ? +fieldValue
|
|
454
455
|
fieldValue,
|
|
455
456
|
_y;
|
|
457
|
+
}
|
|
456
458
|
if (key == drapcode_constant_1.NOT_EQUAL)
|
|
457
459
|
return _z = {},
|
|
458
460
|
_z[field] = {
|