I have the following query
{
lessen: {
$not: {
$elemMatch: {
$and: [
{start: {$lt: new Date()}},
{eind: {$gt: new Date()}}
]
}
}
}
}
This worked perfectly until I updated to Meteor 0.8. Now it throws Error: Unrecognized operator: $and
. Does anyone know how to fix this?