const contactSchema = mongoose.Schema({
name: {
type:String,
required: true
},
mo_no: {
type: Number,
required: true
},
creator: {
type: mongoose.Schema.Types.ObjectId,
required: true
}
});
const Contact = module.exports = mongoose.model('Contact', contactSchema);
当我执行此服务器时,发送了200个状态,但正在添加数据。有解决办法吗?