PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 11th of September, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[22:55:48] <RxMcDonald> Hello, anyone knows if it's possible to update all fields of a document passing a full document but not replace/remove existing fields? if I have to write a $set for every field I'm going to spend quite some time because there's hundreds of fields on the doc
[22:56:49] <RxMcDonald> According to the MongoDB Doc: The following operation passes an <update> document that contains only field and value pairs. The <update> document completely replaces the original document except for the _id field.
[22:57:21] <RxMcDonald> The fields ratings and reorder no longer exist in the updated document since the fields were not in the replacement document.
[22:57:58] <RxMcDonald> Looking for something like a left object merge