title: mongodb doesnt save 2 objects inside the main object
body: <p>I want to save an object that has and object and array inside it. But when I end up saving the data in the mongo, it doesnt save a few properties. </p>
  
  <p>like "entityMap": {}, data: {}</p>
  
  <p>body = </p>
  
  <pre><code>{ entityMap: {},
    blocks:
     [ { key: '637gr',
         text: 'Books selected for the you  ',
         type: 'header-four',
         depth: 0,
         inlineStyleRanges: [Array],
         entityRanges: [],
         data: {} } ] }
  </code></pre>
  
  <p>Heres how my mongo schema structured. </p>
  
  <pre><code>const mongoose = require('mongoose');
  
  const { Schema } = mongoose;
  
  const bookSchema = new Schema({
      body: {
        type: {},
        required: false
      },
      templateName: {
        type: String,
        required: true
      },
      subject: {
        type: String,
        required: true
      },
      googleId: {
        type: String,
        required:true
      },
      createdAt: { type: Date, default: Date.now },
      updatedAt: { type: Date, default: Date.now }
    });
  
  mongoose.model('books', bookSchema);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/texUw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/texUw.jpg" alt="enter image description here"></a></p>