What I want to achieve is perfectly described from the accepted answer:
If I understand the question correctly, you want to update a document with
the contents of another document, but only the fields that are not already
present, and completely ignore the fields that are already set (even if to
The accepted answer from 4 years ago says it cannot be done in a single
command. I'm new to MongoDB and can't seem to find more questions regarding
this. Probably I'm not looking at the right term or this command just
simply doesn't exist. Can someone enlighten me?
I'm using Python's driver.
You received this message because you are subscribed to the Google Groups "mongodb-user"