/mongod 数组多条件方式:[数组名]” { $elemMatch { [子元素字段名] }}/

db.sync_log.find({ "result.match":{ $elemMatch :{"home_team_id":"40192","season_id":"1773"}}})

/* mongod 数组单条件:[数组名].[子元素字段名]/

db.sync_log.find({ "result.match.home_team_id":"40192"})

/* mongod 数组多 where条件*/

db.sync_log.find() .where("result.match.id").eq("3805995").where("result.match.season_id").eq("1773") .projection({}) .sort({ _id: -1 }) .limit(100)

Mongodb 三种方式操作数组执行语句_字段名