I'm new on RethinkDB and need to return min , max and avg of "value" by grouping on "id", here's an example of my Json :
{
"mycontent": [
{
"id": "000000000011",
"value": "300"
},
{
"id": "000000000012",
"value": "500"
},
{
"id": "000000000011",
"value": "700"
},
{
"id": "000000000013",
"value": "200"
},
{
"id": "000000000011",
"value": "950"
},
{
"id": "000000000012",
"value": "150"
}
]
}
I find some problem understanding how to do that using RethinkDB logic. Any help ?