title: mongoDb database form-data empty response
body: <p>I am sending Rest <code>POST</code> Request(form-data) using postman to <code>mongoDb</code>. Even after providing all the key-value pairs in the Model, only the <code>product _id</code> gets stored into the database not other array of objects. Here's my model schema:</p>
  
  <pre><code>const mongoose = require('mongoose');
  
  const productSchema = mongoose.Schema({
  
      name: String,
      price:  Number, 
      editor1: String, 
      year: String,
      quantity: Number,
      subject: String,
      newProduct:  String,
      relatedProduct: String,
      //coverImage: { type: String, required: false }
  });
  
  module.exports = mongoose.model('Product', productSchema);
  </code></pre>
  
  <p>And here's my POST request for the products:</p>
  
  <pre><code>exports.products_create_product = (req, res, next) =&gt; {
    const product = new Product(req.body);
    product
      .save()
      .then(result =&gt; {
        console.log(result);
        res.status(201).json({
          message: "Created product successfully",
          createdProduct: {
            name: result.name,
            price: result.price,
            _id: result._id,
            request: {
              type: "GET",
              url: "http://localhost:3000/products/" + result._id
            }
          }
      });
    })
      .catch(err =&gt; {
        console.log(err);
        res.status(500).json({
          error: err
        });
      });
  };
  </code></pre>
  
  <p>And this is my result output:</p>
  
  <pre><code>{
      "message": "Created product successfully",
      "createdProduct": {
          "_id": "5b2df3420e8b7d1150f6f7f6",
          "request": {
              "type": "GET",
              "url": "http://localhost:3000/products/5b2df3420e8b7d1150f6f7f6"
          }
      }
  }
  </code></pre>
  
  <p>Tried every possible way to solve this but in vain.</p>