These are chat archives for Automattic/mongoose

Sep 2015
Alex Hatzipanis
Sep 06 2015 05:51
According to the docs Model.update doesn't apply middleware and says to use Model.findOne. What if I want to update multiple documents? What would I use then?
Alex Hatzipanis
Sep 06 2015 06:12
Isn't it always the case after you post a question you then uncover the answer. I get it now. I had to use .find() and then iterate over the array. Pretty easy in the end.
Kowsheek Mahmood
Sep 06 2015 18:18
Hi everyone, hope I am not missing something from the docs but is it possible to create a reusuable Type (across multiple Schemas) for sub document without it being used for 'ref'