mongoose: how to return documents not Cursor with .find()

前端 未结 0 1801
误落风尘
误落风尘 2021-02-08 03:22
await mongoose.connection.db.collection(\'ways\').find({}, (err, result) => {
    console.log(result);
});

This results

Cursor {
  _re         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题