I have an array of string
let stringObjectIdArray = ['fssdlfsd343','43434234242','342424242']
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.
let objectIdArray = mongoose.Types.ObjectId(stringObjectIdArray)
// above will give error
Is there a way to help me in this case? Thank you very much for helping me!