Updating a specific element in an array with MongoDB / Meteor
问题 "users_voted" : [ { "user_id" : "AQG8ECLdBRJ4jwPMG", "score" : "down" } ] Wondering how I would go about updating the users_voted field which is an array objects. I need to have a specific object updated. I know the index at which this object is located, I simply need to figure out how I can update that object in a MongoDB / Meteor collection. This is some pseudo-code that I have to better explain what I mean. Posts.update({_id: post_id}, {$set: {vote_score[index]: u_object}}); So in this