Mongoose Instance methods is not a function

后端 未结 0 1186
[愿得一人]
[愿得一人] 2021-01-20 04:16

whenever I tried to use Mongoose instance method which I made, my app crushed.. my error looks like:

TypeError: user.comparePassword is not a function

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