An outer value of 'this' is shadowed by this container with Mongoose Schema Typescript

前端 未结 0 1013
被撕碎了的回忆
被撕碎了的回忆 2021-02-12 15:44

I have the following for a schema validator for MongoDB:{

UserSchema.path(\'email\').validate(async function (email: string) {
  const count = await User.count({          


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