mongo的group怎么能想MySQL一样select * from XX group by xx 输出所有的值
Use aggreat*, and then write in the $group _id field what you want to group
Use MongoDB’s aggregation operation (aggregate), please see the official documentation for details, click here
Use aggreat*, and then write in the $group
_id field what you want to group
Use MongoDB’s aggregation operation (aggregate), please see the official documentation for details, click here