Update nested object by key

This is a JS question rather than mongo. It is called computed field names. See