I am trying to find the sum of all commission per day but I don't know what should I do and the below is the mongoDB documents:
"operationData" : {
"topUp" : {
"topUpId" : "20160520182653940+043000001792098779520",
"phoneNumber" : "792098779",
"commission" : 4,
}
}
}
{
"_id" : 2,
"dateTime" : ISODate("2016-06-20T13:56:53.970Z"),
"operationData" : {
"topUp" : {
"topUpId" : "20160520182653940+043000001792098779520",
"phoneNumber" : "792098779",
"commission" : 6,
}
}
}
{
"_id" : 3,
"dateTime" : ISODate("2016-06-20T13:56:53.970Z"),
"operationData" : {
"topUp" : {
"topUpId" : "20160520182653940+0430000017920987345243",
"phoneNumber" : "792098779",
"commission" : 5,
}
}
}