-1
const mongoose = require('mongoose');
const schema = mongoose.schema;
const marioCharSchema = new schema({
name: String,
weight: Number
});
const marioChar = mongoose.model('marioChar', marioCharSchema);
module.exports = marioChar;
嗨,穆罕默德,欢迎来到StackOverflow。你有什么问题?此外,请花时间阅读[如何提问](https://stackoverflow.com/help/how-to-ask)。 –
错字。这是'mongoose.Schema' –