I run your example script and it works as you say, so my version of node/mongodb are fine. However, when I changed my script to make the updated to the docs in a similar manner, it still does not save the updates. I added a gist
with the schema, sample doc, and my script. Do you think you can take a look? I am wondering if this has to do with my schema and how to properly update based on that.