var timestampToObjectId = require('timestamp-objectId');
// timestampToObjectId = function(timestamp)
// timestamp could be both String and actual Timestamp
db.mycollection.find({
_id: {
$gt: timestampToObjectId('1980/05/25'),
$lt: timestampToObjectId(1367413318476)
}
});
...
-
Notifications
You must be signed in to change notification settings - Fork 1
AVVSDevelopment/timestamp-objectId
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
converts timestamp to ObjectID, useful for querying mongodb
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published