MongoDB introduced the aggregation framework since Version 2.2 but the power of the aggregation framework has only been tapped in Mongoid only since 3.1.0. Even today in the latest version (currently v4.0.0), the aggregation framework is used only for some basic functionality - :sum, :count, :avg, :min and :max. While this is much better than running … Continue reading How The Mongoid & MongoDB Aggregation Framework Looks Like!