These are chat archives for Automattic/mongoose

23rd
Jun 2018
Kev
@lineus
Jun 23 2018 08:45
@Dhawaldeep apologies, I was offline all day yesterday. did you get it working? if not I'll take a look.
@gvuyk I don't see why not, you can export the schema via a module and use it wherever you need it.
Kev
@lineus
Jun 23 2018 09:09
@benydc you can write a function that updates the desired doc(s) and use setInterval to run that function endlessly, or setTimeout to run it just once.
Dhawaldeep
@Dhawaldeep
Jun 23 2018 11:41
@lineus yes I used model.aggregate(...
vøid a.k.a. Machito Opresor
@v0idifier_twitter
Jun 23 2018 23:13
heyo
I have a model with an array of ObjectId with refs
I want to automatically remove the ObjectId of deleted documents of those refs