i\'m trying a simple query in Mongo which in MySQL would look like this.
select * from emails where bounceCount > sentCount;
So far I ha
Everyone seems to mention $where
without really knowing that it is:
Another method which would be a lot better for about 99% of cases is to use the aggregation framework:
db.col.aggregate([
{$project: {ab: {$cmp: ['$bounceCount','$sentCount']}}},
{$match: {ab:{$gt:0}}}
])