db.groupedInfo.count({'surveyInfo.surveyAndUserID.0':{$exists:1}}) 转载于:https://www.cnblogs.com/colipso/p/4531345.html