这样写代码会报错:
PostModel.findAsync({author:author}).populateAsync('author')
.then(function (posts) {
res.render('posts', {
posts: posts
});
})
.catch(next);错误为:

bluebird这个库的populate是怎么用的呢?
千万里不及你
随时随地看视频慕课网APP
相关分类