我的代码由创建Node+ Express服务器应用程序接口的server.js文件组成。server.js文件由我创建的模型和带有GET、POST方法的路由组成。body-parser');var morgan = require('morgan');
var mongoose= require('mongoose');
我使用猫鼬连接和查询mongoDB。现在,如果我有以下代码: mongoose.connection.db.collection('offer').aggregate,达到了预期的输出。但是,如果我们有以下查询,并且我将SAMPLE_SIZE作为2提供: return new Promise((resolve有人能<