Node.js 如何将此mongodb对象转换为普通版本?

Node.js 如何将此mongodb对象转换为普通版本?,node.js,mongodb,mongoose,electron,Node.js,Mongodb,Mongoose,Electron,我正在使用electron和react来处理我的应用程序,它与ipcMain和ipcRenderer相互通信。我不使用express库的后端。我正在使用mongodb和mongoose对集合进行建模。我有一个对象数组db对象从electron发出,在客户端(react)它给出一个这样的对象 availability: true bID: "A-Block" dateCreated: Wed Aug 19 2020 16:18:36 GMT+0530 (India Standa

我正在使用electron和react来处理我的应用程序,它与ipcMain和ipcRenderer相互通信。我不使用express库的后端。我正在使用mongodb和mongoose对集合进行建模。我有一个对象数组db对象从electron发出,在客户端(react)它给出一个这样的对象

availability: true
bID: "A-Block"
dateCreated: Wed Aug 19 2020 16:18:36 GMT+0530 (India Standard Time) {}
__v: 0
_id: {_bsontype: "ObjectID", id: Uint8Array(12)}
__proto__: Object
我想在客户端的实际对象也是我的问题

下面是我的MongooseModel.find()方法

它在控制台中提供我想要的假定对象。像这样

_id: 5f3d0384c42b9eee83b59762,
availability: true,
bID: 'A-Block',
dateCreated: 2020-08-19T10:48:36.051Z,
__v: 0
如何在没有额外元键值的情况下获得相同的对象?救命啊

检查
projection参数指定要返回的字段。参数包含include或exclude规范,而不是两者,除非exclude用于_id字段。

_id: 5f3d0384c42b9eee83b59762,
availability: true,
bID: 'A-Block',
dateCreated: 2020-08-19T10:48:36.051Z,
__v: 0
loadBuildings: (callback) => {
    Building.find({ }, { availability: 1, bID: 1, dateCreated: 1 }).lean().then(bs => callback(bs))
}