These are chat archives for Automattic/mongoose

Dec 2018
Mrugesh Thaker
Dec 12 2018 11:10
I have written query as shown here :
Orders.find({order_status: "placed"}).populate('rearges').distinct('').exec((err, docs) => { if(!err) { console.log('doc length is ' + docs.length); } .
But somehow it is not giving me the correct length
Mohammad Hossein Mardani
Dec 12 2018 12:57
hi how can i implement mass assignment fields in mongoose?like fillable in php laravel.thanks
how can i get current value in mongoose set hook method ? Automattic/mongoose#7312