MongoDB query get n records of each group (aggregation)For example, you might want to get 5 members of each group in your application.