title: Convert string array into object Id array
body: <p>I have an array of string</p>
  
  <pre><code>let stringObjectIdArray = ['fssdlfsd343','43434234242','342424242']
  </code></pre>
  
  <p>and I want to change the string array into an object Id array by using mongoose type but it didn't work. It only works for a string not array type.</p>
  
  <pre><code>let objectIdArray = mongoose.Types.ObjectId(stringObjectIdArray)
  // above will give error
  </code></pre>
  
  <p>Is there a way to help me in this case? Thank you very much for helping me!</p>