Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

bluebird的populateAsync怎么使用呢?

$
0
0
PostModel.findAsync({author:author}).populateAsync('author')
            .then(function (posts) {
                res.render('posts', {
                    posts: posts
                });
            })
            .catch(next);

bluebird这个库的populate是怎么用的呢?


Viewing all articles
Browse latest Browse all 14821

Trending Articles