📜  猫鼬在数组中查找 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:39.827000             🧑  作者: Mango

代码示例6
//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);
});