diff --git a/packages/objectql/src/driver/meteorMongo.ts b/packages/objectql/src/driver/meteorMongo.ts index 10db41cfba..6cc6e176b6 100644 --- a/packages/objectql/src/driver/meteorMongo.ts +++ b/packages/objectql/src/driver/meteorMongo.ts @@ -432,7 +432,7 @@ export class SteedosMeteorMongoDriver implements SteedosDriver { const options = { $set: {} }; const keys = _.keys(data); _.each(keys, function (key) { - if (_.include(['$inc', '$min', '$max', '$mul', '$push', '$addToSet'], key)) { + if (_.include(['$inc','$min','$max','$mul', '$push', '$addToSet', '$pop', '$pull', '$pullAll'], key)) { options[key] = data[key]; } else { options.$set[key] = data[key]; diff --git a/packages/objectql/src/driver/mongo.ts b/packages/objectql/src/driver/mongo.ts index f128a1d2f8..6a12705f09 100644 --- a/packages/objectql/src/driver/mongo.ts +++ b/packages/objectql/src/driver/mongo.ts @@ -348,7 +348,7 @@ export class SteedosMongoDriver implements SteedosDriver { const options = {$set: {}, $unset: {}}; const keys = _.keys(data); _.each(keys, function(key){ - if(_.include(['$inc','$min','$max','$mul', '$push', '$addToSet'], key)){ + if(_.include(['$inc','$min','$max','$mul', '$push', '$addToSet', '$pop', '$pull', '$pullAll'], key)){ options[key] = data[key]; }else{ if (null === data[key]) {