I have this query:
db.users.count( { confirmed_at : { $gt: start } } , { confirmed_at : { $lt: end } } );
3750
no matter what I set date to:
var end = new Date(2011, 1, 12);
The query returns the same number as a result.
Why would that happen? Am I doing something wrong?
I think you need to concat the two conditions like
to gain the range query. But this is in theory, had no chance to test this so far!
Give it a try!