mongodb style object mutator