These are chat archives for Automattic/mongoose

12th
Dec 2018
Mrugesh Thaker
@mjet08
Dec 12 2018 11:10
I have written query as shown here :
Orders.find({order_status: "placed"}).populate('rearges').distinct('rearges.mobile').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
@mhmardani
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