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
It should do the trick:
db.emails.find({ $expr: { $gt: [ "$bounceCount" , "$sentCount" ] } });
Here is the reference where I found it: https://docs.mongodb.com/manual/reference/operator/query/expr/#op._S_expr