const schema = new Schema({ _id: Number }); const Model = mongoose.model('Test', schema); const doc = new Model(); await doc.save(); // Throws "document ...
確定! 回上一頁