^ TypeError: Invalid schema configuration: `U` is not a valid type at path `0`

前端 未结 0 1946
天涯浪人
天涯浪人 2020-12-14 14:22

const userSchema = new mongoose.Schema({ name: { type:String, required:true, unique:true },

password: { type:String, required:true }, avatar: { type:String },

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