title: can't update boolean mongoose object with a time stamp
body: <p>I am having trouble updating a boolean object and i am getting error every time-</p>
  <p>this is the object-</p>
  <pre><code>        const mongoose = require('mongoose');
      
      const PlantProductSchema = new mongoose.Schema({
      
        waterMotor: {
          state: {
            type: Boolean,
            default: false,
            time: { type: Date, default: Date.now },
          }
        },
      
      });
  
  
  module.exports = mongoose.model('PlantProduct', PlantProductSchema);
  </code></pre>
  <p>this is the update action-</p>
  <pre><code>      plantProduct.waterMotor.update({state: idResultsObj.motorState });
  </code></pre>
  <p>idResultsObj.motorStat is boolean i chacked</p>
  <p>on the other hand when I change I do this -</p>
  <pre><code>plantProduct.waterMotor.state = idResultsObj.motorState;
  </code></pre>
  <p>it works but It doesn't give a time stamp.</p>
  <p>I appreciate any help I get!!</p>