Created
November 30, 2014 12:39
-
-
Save jpadilla/5cbee41166c21ed2df3c to your computer and use it in GitHub Desktop.
HDN Queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.posts.find({ | |
source: 'designer_news', | |
createdAt: { | |
$gte: ISODate("2014-07-07T00:00:00Z"), | |
$lt: ISODate("2014-07-08T00:00:00Z") | |
} | |
}, {_id:0, __v: 0, createdAt:0, updatedAt:0}).sort({ | |
points: -1, | |
comments: -1 | |
}).limit(5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.posts.find({ | |
source: 'hacker_news', | |
createdAt: { | |
$gte: ISODate("2014-07-07T00:00:00Z"), | |
$lt: ISODate("2014-07-08T00:00:00Z") | |
} | |
}, {_id:0, __v: 0, createdAt:0, updatedAt:0}).sort({ | |
points: -1, | |
comments: -1 | |
}).limit(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment