title: Embedding fields in all mongodb documents
body: <p>I have a collection with documents that follows this structure:</p>
  
  <pre><code>child: 
      {
      id: int 
      name: string
      age: int
      dob: date
      school: string
      class: string
      }
  </code></pre>
  
  <p>I would like to embed certain fields, into something like this:</p>
  
  <pre><code>child:
      {
      id : int
      personalInfo {
          name: string
          age: int
          dob: date
          }
      educationInfo {
          school: string
          class: string
          }
      }
  </code></pre>
  
  <p>How would one go across in doing this in code? I am new to Mongodb, so I apologize if my syntax is incorrect. All of the fields have one-to-one relationships with the child (i.e. one child has one id, one name, one age, one school etc.), so I'm also wondering if embedding is even necessary.</p>