我的github

无法直接更改mongoose返回的json要加lean(),lean属性的作用:转换mongoose查询结果类型,从MongooseDocuments转换为JS Object,从而便于我们修改查询结果:https://blog.csdn.net/chenhao0568/article/details/118960959

posted on 2021-10-18 11:15  XiaoNiuFeiTian  阅读(978)  评论(0编辑  收藏  举报