mongo db group count 방법




db.getCollection('product_crawling_queue').aggregate({
    $group: {
        _id: {
            site_id: "$site_id"
        },
        count: {
            $sum: 1
        }
    }
})


+ Recent posts