title: Update object in array if Object Exist else create new one in mongoose
body: <p>This is <strong>Streak</strong> Collection and I want to search today date in streaks array if it exists then simply update the question count else create a new Object with the today date.</p>
  <pre><code>_id : {
      type: mongoose.Types.ObjectId,
      ref: &quot;User&quot;,
  },
  streaks :[{
      date :{
          type : Date,
          required : true
      },
      questionCount :{
          type : Number,
          required : true,
          default : 0
      }
  }]
  </code></pre>