These are chat archives for Automattic/mongoose

14th
Mar 2019
Emanuele Ricci
@StErMi
Mar 14 08:29
Hi everyone. I've this kind of schema https://gist.github.com/StErMi/97478cfda9fbe34b9b1195c69f94e974 and I would like to aggregate all the FoodPortions that are contained inside a CalendarPeriodGroup that comes from group.portion and group.recipe.portions. How can I do that?
Robert Main
@robertmain
Mar 14 15:39
hey everyone
Can I construct a mongo document programatically, outwith my test?
Francisco Canela
@fcanela
Mar 14 19:14
Hello, any reason why I can still find a document after it should have been deleted?
I am using findOneAndRemove() method. It is returning the deleted document