NodeJs, Mogoose: User model does not work when imported at top of file

前端 未结 0 1781
时光说笑
时光说笑 2021-02-13 06:23

I have a user model user.js. Here is the basic definition.

const userSchema = mongoose.Schema({
    firstname: {
        type: String,
        requir         


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