how to calculate percentage of individual field in MongoDB using aggregation query
I want to calculate the percentage of the position of a football player field-wise to the country they belong to. Let's say, there are a total 800 players from Nepal whereas only 20 were goal keepers so percentage would be…