我现在有一个集合,比如{phonePlatform:'Android 4.0',carrier:"中国移动"},{phonePlatform:'Android 5.0',carrier:"中国移动"},{phonePlatform:'Android 6.0',carrier:"中国联通"},{phonePlatform:'iOS 6',carrier:"中国移动"},{phonePlatform:'iOS 7',carrier:"中国电信"}
我想统计一下 使用android ,iOS系统的分别有多少人,怎么写查询语句呢,如何进行分组呢,aggregate $group可以办到不?
请大神指点!在下感激涕零