title: How to inset multiple documents in mongoose with mongoose required validation?
body: <p>I wanted to insert multiple documents in my MongoDB collection. I was able to do that by using Model.collection.insert function but when I insert those data it skip/bypass required validation.</p>
  
  <p>I've tried <code>Model.collection.insert([{data: '1'}, {data: '2'}, {type: '3'}])</code> but this way it's skip or bypass the validation. I want data field required and I used in my Schema that as required. But that's not working.</p>
  
  <p>There is my schema that required a field.</p>
  
  <pre><code>export const SubjectSchema = new mongoose.Schema({
      title: { type: String, required: [true, "title field required"] },
      groups_id: { type: String },
      class_id: { type: String },
      meta: { type: Object }
  },
      { timestamps: true })
  </code></pre>
  
  <p>Here is my function</p>
  
  <pre><code>    async createSubject(body) {
          let result = SubjectSchema.collection.insert(body)
          return result
      }
  </code></pre>
  
  <p>I want multiple data to be stored and in each record, <code>title</code> field should be required</p>