Update query in MongoDB shell
问题 In the shell, my query is: db.checkin_4e95ae0926abe9ad28000001.update({location_city:"New York"}, {location_country: "FUDGE!"}); However, it doesn't actually update my records. It doesn't error either. When I do a db.checkin_4e95ae0926abe9ad28000001.find({location_city:"New York"}); after running this, I get all my results but the location_country has not changed: { "_id": ObjectId("4e970209a0290b70660009e9"), "addedOn": ISODate("2011-10-13T15:21:45.772Z"), "location_address1": "", "location