Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get the most recent records in mongoose

Tweet.findOne().sort({created_at: -1}).exec(function(err, post) { ... });
 
PREVIOUS NEXT
Tagged: #records #mongoose
ADD COMMENT
Topic
Name
3+4 =