I got some result like this in rethinkdb using group
[
{
"group":[
0,
"A"
],
"reduction":14
},
{
"group":[
"B",
0
],
"reduction":2
}
]
I used like r.....group(..).count() (I cannot mentioned all query because there are many steps). But my result should like be displayed like this:
[
{
"group":[
"A"
],
"reduction":14
},
{
"group":[
"B"
],
"reduction":2
}
]
Even Better just key value pair [{"A":14},{"B":2}]