I am trying to save an instant block of statistics, for example.
model = { id: 123, stats: { fooCount: 117, barCount: 175, bazCount: 654 } }
... and be able to update an existing record, but only specify new values, for example:
model.update({ '_id': 123, stats: { fooCount: 118 } });
... without resetting the old values in stats . Is this possible if you do not write too much code around my updates?
source share