title: Array Creation array in mongodb
body: <p>Portfolio class has an array field named folders. when i create it using :</p>
  
  <pre><code>db.portfolio.insert(
    folders: [
      {"name"=&gt;"Folder 1", 
       "stocks"=&gt;[
          {"name"=&gt;"stock name", 
           "id"=&gt;"stock id1", 
           "qty"=&gt;2},
          {"name"=&gt;"stock name",
           "id"=&gt;"stock id2",
           "qty"=&gt;1}
      ]},
      {"name"=&gt;"Folder 2",
       "stocks"=&gt;[
          {"name"=&gt;"stock name",
           "id"=&gt;"stock id3",
           "qty"=&gt;2},
          {"name"=&gt;"stock name",
           "id"=&gt;"stock id4",
           "qty"=&gt;1}
      ]}
  ])
  </code></pre>
  
  <p>I got error that "SyntaxError: missing ) after argument list (shell):1". Any guesses?</p>