[13:43:38] <irthewinner> guys, how can I update a query matching "xnames" but will return me the detailed list of affected rows? in mongoose
[13:44:29] <irthewinner> I tried with MYSCHEMA.updateMany({ group: request.group1 }, { group: request.group2 }, function(err,result){}
[13:44:43] <irthewinner> but this will not give me the detailed results of each affected rows
[16:48:18] <d4rkp1r4t3> might be able to utilize change stream - https://docs.mongodb.com/manual/changeStreams/
[17:05:42] <irthewinner> thanks mate :) I will check this link later, gotta go now
[17:33:33] <lootic> Hi! Ive been trying to improve the performance of my application. To do this I hoped I could use aggregation pipes. However the best I could come up with was the following: