Virtual's value won't work when populating /mongoose/. How to fix?

前端 未结 0 1811
遥遥无期
遥遥无期 2021-01-22 11:35

I\'ve got a quick question regarding mongoose virtuals. I have a "price" virtual, here\'s the code:

buildingElementSchema.virtual(\'price\')
  .get(func         


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