Query Output:
"result" : [
{
"total" : 149,
"email" : "TEST8@GMAIL.COM"
},
{
"total" : 54,
"email" : "TEST7@GMAIL.COM"
} ...
],
"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 TEST8@GMAIL.COM
54 TEST7@GMAIL.COM
...
Please help!