-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Queries: "between" or "range" queries (<, >) #6358
Comments
+1 |
👍 WOW guys this is essential |
However using native() we can achieve the same http://cookbook.mongodb.org/patterns/date_range/ |
@artworkad, I think that using native method is a patch, but not a solution :) I think also that this feature is essential |
Hi all, |
You can do: User.find({
date: { '>': new Date('2/4/2014'), '<': new Date('2/7/2014') }
}).exec(/* ... */); |
Presently, you can do
>
and<
, but you can't dobetween
.Example usage:
( PS- this isn't high priority really, just cleaning up-- migrated from: #274 )
The text was updated successfully, but these errors were encountered: