Meteor update a Collection object
问题 in Meteor, I'm having a collection with a Schema, and a number of items are added dynamically. In this case, I'm dealing with milestones object , and once the user check one off I want to update complete in this Collections item to true (default is false) Here is my schema milestones: { type: Array, optional: true }, 'milestones.$': { type: Object }, 'milestones.$.name': { type: String }, 'milestones.$.hours': { type: Number }, 'milestones.$.complete': { type: Boolean } How do I write a $set