I want to increase a field inside an object object inside a mongodb document by 1.
var stuffID = 5 collection.update({ \"id\": id, }, { \'$in
Put the variable where it says stuffID.
'stuff.' + varname: 1