title: How to create nested Schema with object, arrays and keys
body: <p>I am currently trying to create a nested schema for a  MERN application(I  just started learning mongoose), I have a feeling the schema I created wasn't done correctly. I would like to validate this response :</p>
  
  <pre><code>quiz: [
      {
         question: "What is 4 X 4 ? ",
         answers: [
              { 
                 type: "Smart",
                 content: "16" 
              },
              {
                 type: "Below_Average",
                 content: "15"
              },
              { 
                 type: "Clueless",
                 content: "1" 
              }
          ]            
      },
     ]
  </code></pre>
  
  <p>//this is what I have done</p>
  
  <pre><code>const QuizSchema = new Schema({    
      question: {
          type: String,
          default: ''
      },
      answers: {
          type: Array
      },
      type: {
          type: String,
          default: ''
      },
      content: {
          type: String,
          default: ''
      } 
  });
  </code></pre>
  
  <p>what is the correct way of doing it?</p>