These are chat archives for Automattic/mongoose

26th
Jan 2018
Diego Aguilar Aguilar
@diegoaguilar
Jan 26 2018 00:19
Hello, probably off topic, but, can someone pls give an eye to this aggregation related question? https://stackoverflow.com/questions/48453546/grouping-by-date-with-sum-of-subdocument-fields
Nacho Caballero
@nachocab
Jan 26 2018 12:51
@diegoaguilar I get a broken link
Yogesh Bansal
@yogeshbansal
Jan 26 2018 15:06
i upgraded to mongoose 5.1.X, now I am getting cycle dependency detect
its not showing which file has the issue
Clay Kohut
@claykohut
Jan 26 2018 15:33
Yo -- we're having an issue where mongoose isn't defaulting to empty arrays on our production box, but it works properly on local -- does anyone know what that issue could be?
like we're trying to reference a field defined in the schema as an array, but if its not explicitly set its causing node to crash
this same code has worked for the past 8 months or so but is now crashing even though we havent updated our config as far as we know
Clay Kohut
@claykohut
Jan 26 2018 15:45
getting an error like: TypeError: Cannot read property 'length' of undefined
at model.<anonymous>