Mongoose Model.UpdateMany is not a function error on pre hook, this is working for similar schema and on the resolver

前端 未结 0 1722
-上瘾入骨i
-上瘾入骨i 2020-12-30 04:43

This throws error Station.UpdateMany is not a function but works when on resolver

costumerSchema.pre(\'save\', async function() {
          await Station.up         


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