Pymongo how to properly use $push to update an existing document
问题 I am doing something wrong or I don't understand $push (probably don't understand). Anyway I have the following document: { "_id" : ObjectId("501c83051d41c8753e000000"), "node" : "denver", "enc" : { "environment" : "production", "classes" : { "denver" : "" } }, "inherit" : "default" } And I am trying to make the document { "_id" : ObjectId("501c83051d41c8753e000000"), "node" : "denver", "enc" : { "environment" : "production", "classes" : { "denver" : "", "boulder" : ""} }, "inherit" :