mongo的group怎么能想MySQL一样select * from XX group by xx 输出所有的值
PHP中文网2017-04-28 09:07:24
Use aggreat*, and then write in the $group
_id field what you want to group
天蓬老师2017-04-28 09:07:24
Use MongoDB’s aggregation operation (aggregate), please see the official documentation for details, click here