Mongodb – How to safely update nested fields in DocumentDB when parent fields may be null, without overwriting existing data?
I am executing an update on a complex document in DocumentDB. I want to only update changed fields, without setting the object (and/or any nested objects) explicitly, to avoid overwriting existing data. I am using TypeScript, and have written a…