meteor update method not working <p>this is my colletion:</p> <pre><code>{ "_id" : "Kan6btPXwNiF84j8e", "title" : "Chapter Title 1", "businessId" : "qmWJ3HtZrpka8dpbM", "createdBy" : "GfdPfoPTiSwLv8TBR", "sections" : [ { "id" : "T5KAfTcCb7pCudT3a", "type" : "TEXT", "data" : { "text" : "&lt;h1&gt;2&lt;/h1&gt;&lt;h1&gt;asd&lt;/h1&gt;" }, "createdAt" : ISODate("2016-12-03T10:35:59.023Z"), "updatedAt" : ISODate("2016-12-03T10:35:59.023Z") } ], "createdAt" : ISODate("2016-12-02T12:15:16.577Z"), "updatedAt" : ISODate("2016-12-03T12:54:50.591Z") } </code></pre> <p>this is the meteor method I am calling from client side</p> <pre><code>deleteSection: function (section_id, chapter_id) { chaptersCollection.update( {$and: [{_id: chapter_id}, {'sections.id': section_id}]}, {$pull: {'sections': {'id': section_id}}}, function (err, numAffected) { if (err) { console.log(err); return err; }else{ console.log(numAffected); } }); return 'Section Successfully Deleted'; } </code></pre> <p>in callback function of meteor method, it returns 1 as affected rows. But on server document is not updating.</p> <p>Any suggestion where am I wrong?</p>