Mongoose necessária

const schema = new Schema({
  name: {
    type: String,
    required: true
  }
});
Mo Saeid