📌  相关文章
📜  将字符串数组转换为 objectid mongoose - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:37.536000             🧑  作者: Mango

代码示例1
let objectIdArray = stringObjectIdArray.map(s => mongoose.Types.ObjectId(s));
//or
let objectIdArray = stringObjectIdArray.map(mongoose.Types.ObjectId);