这样写代码会报错:
PostModel.findAsync({author:author}).populateAsync('author') .then(function (posts) { res.render('posts', { posts: posts }); }) .catch(next);
错误为:
bluebird这个库的populate是怎么用的呢?
相关分类