How to get percentage total of data with group by date in MongoDB
问题 How to get percentage total of data with group by date in MongoDB ? Link example : https://mongoplayground.net/p/aNND4EPQhcb I have some collection structure like this { "_id" : ObjectId("5ccbb96706d1d47a4b2ced4b"), "date" : "2019-05-03T10:39:53.108Z", "id" : 166, "update_at" : "2019-05-03T10:45:36.208Z", "type" : "image" } { "_id" : ObjectId("5ccbb96706d1d47a4b2ced4c"), "date" : "2019-05-03T10:39:53.133Z", "id" : 166, "update_at" : "2019-05-03T10:45:36.208Z", "type" : "image" } { "_id" :