mongodb – create a view that gets each most recent document from a collection
I have a collection that pulls state data from an HRIS on a daily basis. We can use state data for all kinds of interesting things, like predictive analytics. However, state change data grows boundlessly (currently, that's another piece of…