Database
[{pity:[{type:"weapon",totalWishes:0},{type:"character",totalWishes:0},{type:"standard",totalWishes:0}]}]
Query
db.collection.update({},{$inc:{"pity.$[elem].totalWishes":1}},{arrayFilters:[{"elem.type":"weapon"}]})