猫鼬结果项计数

时间:2018-08-27 21:54:36

标签: mongoose count

我如何在例如查找结果中获取数组计数

Person.find({'exployment.office':'Greenway'})
        .exec(function(err, result){
            //number of items in result
        });

        //how can I get the array of result which is number of items in the result.

0 个答案:

没有答案