title: Import csv data as array in mongodb using mongoimport
body: <p>I have been trying to import the csv data into mongodb using mongoimport. The collection is like this:</p>
  
  <pre><code>{
  id:"122234343",
  name: "name1",
  children: ["222334444","333344444"]
  }
  </code></pre>
  
  <p>One approach I tried is to create 2 csv files - one with id &amp; name and other with id, children (if id has two children then it will have two rows). Import the data into two different collections using mongoimport and then use update the collection data using foreach() at second collection having children data.</p>
  
  <p>Please suggest is there any another way to populate this "children" array directly from CSV??</p>