我的数据结构是这样的:
{
"_id": "xxxxxx",
"detail": {
"product_name": "swords big",
"type": "weapon",
"make_player": "震荡龙",
"game_zone": 1
}
}
我想统计detail中的数据的多个值的 总和 ,能输出成这样的效果:
{” game_zone “:1000, ” type “:200}
怎么写语句可以实现呢?