title: nested array inserting in mongodb?
body: <p>I am using <a href="https://www.meteor.com/" rel="nofollow">Meteor</a> where I have a mongodb document where something inserted with the following code:</p>
  
  <pre><code>Poll_Coll.insert({question:quest,option1:[{pd:op1,ids:[]}],
          option2:[{pd:op2,ids:[]}],
          option3:[{pd:op3,ids:[]}],
          option4:[{pd:op4,ids:[]}]});
  </code></pre>
  
  <p>I want to update multiple ids in the <code>option1.ids</code> array, which I tried to do like this:</p>
  
  <pre><code>Polls_Coll.update({_id:"xxxx","option1.pd":"xxx"},{$push:{"option1.$.ids":6}});
  Polls_Coll.update({_id:"xxxxx","option1.pd":"xxx"},{$push:{"option1.$.ids":{id:"ya"}}});
  </code></pre>
  
  <p>option1.pd is working perfectly. I tried both the above commands and am getting the error</p>
  
  <blockquote>
    <p>Error: MinimongoError: can't append to array using string field name [$] [409]</p>
  </blockquote>
  
  <p>How do I insert into that ids field?</p>