How to sum nested objects in MongoDB array sorted by date w/ aggregation pipeline?
I need to get the sum of the "points" of the 3 most recent entries/objects under members array based on date. So, the total points should be 3000. (Person B 500, Person C 1000, and Person D 1500). How do…