Se requiere mangosto

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