Mongodb – How to group documents with unique ids and add the values of an array that also uses unique id's?
I have the next data in my Mongo DB { sucursal: 1 productos: [ { producto: 1, kilos: 50 } ] }, { sucursal: 2 productos: [ { producto: 1, kilos: 30 }, { producto: 2, kilos: 50 } ]…