in MongoDB data has the following prepare aggregate function 1
{"_id" : { "monthDate":"04-03-2020"}, "Job" : [ "Designer","Tester","Designer"]}
{"_id" : { "monthDate":"14-03-2020"}, "Job" : [ "Designer","Tester","Tester"]}
{"_id" : { "monthDate":"24-03-2020"}, "Job" : [ "Developer","Manager"]}
{"_id" : { "monthDate":"25-03-2020"}, "Job" : [ "Developer","Developer","Developer"]}
I need the following output
{"_id" : { "monthDate":"04-03-2020"}, "Job" : [ "Designer":2,"Tester":1]}
{"_id" : { "monthDate":"14-03-2020"}, "Job" : [ "Designer":1,"Tester":2]}
{"_id" : { "monthDate":"24-03-2020"}, "Job" : [ "Developer":1,"Manager":1]}
{"_id" : { "monthDate":"25-03-2020"}, "Job" : [ "Developer":3]}