title: How to update data by push array with condition mongoose
body: <p>Im using mongoose and I just use mongo DB. </p>
  
  <p>Here is my schema </p>
  
  <pre><code>date: { type: String },
  branchDetailId: { type: String },
  times: [
    {
      time: { type: String },
      totalOrderCount: { type: String },
      orderId: [String],
    },
  ],
  </code></pre>
  
  <p>Here is my data in array times</p>
  
  <pre><code>"times": [
  {
      "orderId": [
          "5e8178b1b315ee022277e80b",
          "5e8178b1b315ee022277e80b"
      ],
      "_id": ObjectID("5e82ed1c4e553a0874cdad94"),
      "deleted": false,
      "time": "11.00",
      "totalOrderCount": "2",
      "deletedAt": null
  },
  {
      "orderId": [
          "5e8178b1b315ee022277e803b",
          "5e8178b1b315ee0222773e80b"
      ],
      "_id": ObjectID("5e82ed1c4e553a0874cdad95"),
      "deleted": false,
      "time": "12.00",
      "totalOrderCount": "2",
      "deletedAt": null
  }
  ],
  </code></pre>
  
  <p>I and I've my orderId </p>
  
  <p><code>"ertertretretet"</code> //here is example order Id </p>
  
  <p>I want to pust my orderId into time.times : 11:00</p>
  
  <p>something like this</p>
  
  <pre><code>if(times.times == "11.00"){
   push orderId into DB in object time == 11.00 filed
  }
  </code></pre>