How to write Mongoose update query efficiently by typescript

后端 未结 0 1741
小蘑菇
小蘑菇 2020-12-16 08:13

user.update({userName:undefined,birth:"2020"}) When updating in this way, the userName field becomes undefined. I want an optional update query.

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