我刚刚在mongoDB初学者。我有一些文件,我想每天平均,它有4个名字是Vol,Cur,Consump,ConsumpH,但我不知道怎么办。
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b3"
},
"name": "Vol",
"value": 223,
"date": "Tue Jun 12 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b4"
},
"name": "Cur",
"value": 0,
"date": "Tue Jun 12 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b5"
},
"name": "Consumpt",
"value": 0,
"date": "Tue Jun 12 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b6"
},
"name": "ConsumpH",
"value": 287,
"date": "Tue Jun 13 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b8"
},
"name": "Vol",
"value": 223,
"date": "Tue Jun 13 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b9"
},
"name": "Cur",
"value": 0,
"date": "Tue Jun 12 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b10"
},
"name": "Consump",
"value": 0,
"date": "Tue Jun 12 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}
{
"_id": {
"$oid": "5b1f377fc4a66f3954a8a6b11"
},
"name": "ConsumpH",
"value": 287,
"date": "Tue Jun 12 2017 10:01:19 GMT+0700 (SE Asia Standard Time)"
}