How to update a field in mongoose schema along with a new push in an array inside the schema?

后端 未结 0 820
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-04 05:09

I have two schemas in my app. These are as follows:

  1. Trainer Single Rating schema:

      trainerID: String,
      userID: String,
      rating         
    
    
            
相关标签:
回答
  • 消灭零回复
提交回复
热议问题