The 2nd parameter to `mongoose.model()` should be a schema, but it is a schema

前端 未结 0 1724
-上瘾入骨i
-上瘾入骨i 2021-01-21 09:07

I\'m trying to add user to my users collection in MongoDB. I\'m using mongoose with NodeJS and Typescript, and when I try to run the project, I get the error:

The         


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