These are chat archives for Automattic/mongoose

Jan 2019
Jan 09 14:36
Hey guys
something weird has happened and I'm not really sure what's the issue
I've defined the schemas with the way suggested for defining index in documentation schema.index({})
but after creating the first document of collection, it create the collection with none of those indexes.
tried to debug with .on('index' ...
but nothing was problematic there
any suggestions?
Jan 09 15:01
found the solution: there was an autoIndex misconfiguration in the code