从mongodb使用mongoose获取logging

我在node.js应用程序中的分页工作,我正在尝试使用以下查询获取mongodblogging,但是在控制台[]上给出了空白的输出。 因为我有超过15logging在分贝。

Articlepost.find({ status: true, content_category: req.query.type }).sort({ "_id": -1 }).skip(4).limit(5).exec(function(err, docs) { if (err) { console.log(err); } else { console.log(docs); } }); 

正如我以前已经问过一个问题,使用node.js和@JohnnyHK 从mongodb获取最后一条logging,build议我使用exec运行查询。 但是,执行似乎不工作,跳过或者我可能会做一些错误。 任何帮助,将不胜感激!!