Posted at

Mongooseで、日付順で投稿を取り出す。(node.js)

More than 5 years have passed since last update.

Post.find({}).sort('-created').execFind( function(err, items){

console.log( err );
res.render('index.jade', { title: title, posts: items });
});