title: MongoDB Model One-to-Many Relationships with Embedded Documents
body: <p>i find on <a href="https://docs.mongodb.com/manual/tutorial/model-embedded-one-to-many-relationships-between-documents/" rel="nofollow noreferrer">mongoDB docs</a>
  this example. </p>
  
  <pre><code>   {   
      _id: "joe",
      name: "Joe Bookreader"  }
  
      {
         patron_id: "joe",
         street: "123 Fake Street",
         city: "Faketon",
         state: "MA",
         zip: "12345"
      }
      {
         patron_id: "joe",
         street: "1 Some Other Street",
         city: "Boston",
         state: "MA",
         zip: "12345"
      }
  </code></pre>
  
  <p>It also states that you can only retrieve the complete patron information with one query. </p>
  
  <h1>BUT HOW ???</h1>
  
  <ul>
  <li>db.patron.find() // no </li>
  <li>db.patron.aggregate // maybe</li>
  </ul>
  
  <p>I would like such a result </p>
  
  <pre><code>{
     _id: "joe",
     name: "Joe Bookreader",
     addresses: [
                  {
                    street: "123 Fake Street",
                    city: "Faketon",
                    state: "MA",
                    zip: "12345"
                  },
                  {
                    street: "1 Some Other Street",
                    city: "Boston",
                    state: "MA",
                    zip: "12345"
                  }
                ]
   }
  </code></pre>
  
  <p>Many thanks for your help</p>