I'm getting this error:
"Unrecognized logical operator: $in"
while using this query:
this.update(
{}, {
$pull: {
words: {
$in:['string', 'string1']
}
}
}, {
multi: true
});
I'm calling within a es6 class that extends Mongo.Collection in the client, everything else thus far (inserts, remove) has worked and I'm not modifying the update method in any way. The collection is a local collection declared this way:
WordsList = new WordCollection('words', {connection: null});)
The query is very similar to the example in the documentation here and actually, I can reproduce the same error while trying to recreate this example on the console as well.
I'm using Meteor 1.4.4.1 with MongoDB 3.2.12
For some reason I can't yet pin down, I can trace the error to Mongo compiling the query mapping it to logical operators ($and, $or) instead of element (comparison query) operators ($in, $eq)