Nodejs arr.prototype.map cannot add object properties

PageTagMapModel.getPageTagMapNum ({tag: single._id, status: "normal"}) returns the page_num
found by the mongoose query, but if three lines of comments are used in the code, there is no page_num attribute in the resulting data. You can use = to assign a value after a deep copy of single. = I don"t know why

 result = await Promise.all(result.map(async (single) => {
    // single.page_num = await PageTagMapModel.getPageTagMapNum({ tag: single._id, status: "normal" })
    // console.log(single)
    // return single
    let tag = JSON.parse(JSON.stringify(single))
    tag.page_num = await PageTagMapModel.getPageTagMapNum({ tag: single._id, status: "normal" })
    return tag
}))

because single is a document

single = single.toObject()
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e884f3-5bce2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e884f3-5bce2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?