MongoEngine/mongoengine — pull request #360 by Gaarv (2013-06-05 09:32:14+00:00)
Title: Added min and max aggregation

Based on enhancement open issue #200

Added min() and max() aggregation based on map reduce and respective tests. min() only considers non-null values as MongoDB $min does.

Also added last(), only for completeness sake, as MongoEngine only had first() :)

Inline documentation is "added in 0.9" since its tagged as 0.9 milestone.