Assign a mongoose response to another variable as an object (or lean)

后端 未结 0 653
陌清茗
陌清茗 2021-01-14 03:17

How can I assign a mongoose variable to as an object without affecting the original variable?

So I know we have myRes.toObject(); but that converts myRes

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