title: MongoDB - embedding, inserting one collection into another
body: <p>If I have a collection (named e.g. people) that looks like </p>
  
  <pre><code>{
     _id: ObjectID("5e12f6260c190f8ee91b162d"),
     name: "Joe Bookreader",
     address: "Highway To Hell 21"
   }
  </code></pre>
  
  <p>and I want to remove this value for address, and embed the collection (addresses) into it:</p>
  
  <pre><code>               {
                    _id: ObjectID("5e25fg3gjh48ee91b2653"),
                    street: "123 Fake Street",
                    city: "Faketon",
                    state: "MA",
                    zip: "12345"
                  }
  </code></pre>
  
  <p>to look like:</p>
  
  <pre><code>{
     _id: ObjectID("5e12f6260c190f8ee91b162d"),
     name: "Joe Bookreader",
     address: [
                  {
                    street: "123 Fake Street",
                    city: "Faketon",
                    state: "MA",
                    zip: "12345"
                  }
                ]
   }
  </code></pre>
  
  <p>How would I do this? </p>
  
  <p>Would it be something similar to inserting the new column, like in the code below (or something completely different)?</p>
  
  <pre><code> var bulkInsert = db.people.initializeUnorderedBulkOp()
   db.addresses.find().forEach(
      function(doc){
        bulkInsert.insert(doc);
      }
    )
  </code></pre>
  
  <p>Any help would be appreciated, thanks!</p>