Tagged

notebook

A collection of 4 posts

Meteor and MongoDB: Dynamically updating properties of objects nested within an array
meteor.js

Meteor and MongoDB: Dynamically updating properties of objects nested within an array

Before we get into some of the code we will make the following assumptions: Our document set is named Schedule We are using ES2015+ Take this example document structure: { _id: '123-456-789', ownerId: '123', schedule: [ { _id: '432-1234-12', sectionTitle: 'Section 1', }, { _id: '222-111-232', sectionTitle: 'Section 2', } ], } The following will update sectionTitle to