Database
[{"collection":"collection","count":10,"content":{"key":{"type":"int","min":0,"max":10}}}]
Query
db.collection.aggregate([{"$match":{"$expr":{"$lt":[{"$dateDiff":{"startDate":{"$toDate":"$_id"},"endDate":"$$NOW","unit":"month"}},4]}}}]).explain("executionStats")