how to use “this” inside mongoose userschema.methods in typescript

后端 未结 0 1160
情话喂你
情话喂你 2021-01-13 15:13

i am using mongoose with typescript and jsonwebtoken to create a login api. i am new to typescript. in the user.model, i cant access any schema property using the "this

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