摘要: 一个分组查询的例子:model.aggregate([{$match: ops}, {$unwind: '$details'}, {$sort: {create_at: -1}}, { $group: { _id: { promotion_id: "$promotion_id", product_i 阅读全文
posted @ 2016-08-18 16:39 光尘9022 阅读(2158) 评论(0) 推荐(0) 编辑