diff --git a/lib/Drivers/DML/mongodb.js b/lib/Drivers/DML/mongodb.js index 5b15f30c..5a718824 100644 --- a/lib/Drivers/DML/mongodb.js +++ b/lib/Drivers/DML/mongodb.js @@ -353,7 +353,7 @@ Driver.prototype.clear = function (table, cb) { function convertToDB(obj, timeZone) { for (var k in obj) { - if (Array.isArray(obj[k])) { + if (Array.isArray(obj[k]) && k[0] != '$') { for (var i = 0; i < obj[k].length; i++) { obj[k][i] = convertToDBVal(k, obj[k][i], timeZone); }