get the most recent records in mongoose code example
Example: get the most recent records in mongoose
Tweet.findOne().sort({created_at: -1}).exec(function(err, post) { ... });
Tweet.findOne().sort({created_at: -1}).exec(function(err, post) { ... });