Typescript throws compilation error in Mongoose pre hook (Expected 1 arguments, but got 0)

前端 未结 0 1903
北荒
北荒 2020-12-06 08:09

I am following a tutorial where the following code is placed inside the users.ts file, inside a User model.

userSchema.pre(\'save\', async functi         


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