These are chat archives for Automattic/mongoose

8th
Jun 2015
Erinç Fırtına
@EricMcRay
Jun 08 2015 15:45
@vkarpov15 is this for getting user which salt and hashedPassword fields exist right?
or did you mean `User.find({},{ salt: 1, hashedPassword: 1 });
Valeri Karpov
@vkarpov15
Jun 08 2015 18:08
the later, I typo-ed, sorry. User.find({},{ salt: 1, hashedPassword: 1 });. That's the more explicit form and in theory should work. Also, what version of mongoose are you using? I seem to remember a bug related to this at some point