📜  monngoose 使用 in 从数组中查找 - Javascript 代码示例

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

代码示例2
//e.g. : There's an array of Team Ids which needs to find documents from db
Team.find({
    '_id': { $in: teamIds.split(',') }
}, function(err, teamData) {
    console.log("teams name  " + teamData);
});