Query Output:
"result" : [
{
"total" : 149,
"email" : "[email protected]"
},
{
"total" : 54,
"email" : "[email protected]"
} ...
],
"ok" : 1
Query: Aggregate Query in Mongodb returns specific field
Now I am trying to export the query output to csv file. I want to get output file as shown below:
total(column 1) Email(column 2)
149 [email protected]
54 [email protected]
...
Please help!