These are chat archives for Automattic/mongoose

15th
Apr 2015
Robert Clark
@lojack
Apr 15 2015 18:07
is there an easy way to get a list of all dates (or just years/months) set in a date field on a document?
short of iterating every document in the collection
Valeri Karpov
@vkarpov15
Apr 15 2015 19:31
@lojack MyModel.distinct('myDateField', {}, callback);
tushar dhingra
@tushki
Apr 15 2015 20:58
@vkarpov15 could you please help me out sir
i am in a big trouble have to solve it anyway ?