Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/last/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
*Referrer*: https://www.google.es/
*Screen Resolution*: 1440 x 900
*repo*: docs
*source*: reference/operator/aggregation/last
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/last/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36 *Referrer*: https://www.google.es/ *Screen Resolution*: 1440 x 900 *repo*: docs *source*: reference/operator/aggregation/last
Description
The example is misleading. We thought that "$last" gives you the latest date on a calendar, but instead it is the last entry.
Also, the data provided in the example doesn't help to realize that. Switch the dates so the last item date it is not the latest date also.
Thanks!