Can I refer to a model's fields using this inside findByIdAndUpdate?

后端 未结 0 561
说谎
说谎 2021-01-04 02:30

I am trying to refer to the field called balance from the model, like this

Member.findByIdAndUpdate(invoice.member, {
  balance: this.balance - t         


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