title: ArrayFilter in mongoose
body: <p>Convert the query into node. In which version arrayfilter work in mongoose or how can run these in node app</p>
  
  <pre><code>db.getCollection('student').update(
      { 
          "_id": ObjectId('5a377d62d21a3025a3c3aa49')
      },
      {
          $set: {
              "examples.$[i].isDeleted": true,
              "examples.$[i].updatedAt": new Date(),
              "updatedAt": new Date()
          }
      },
      {
          arrayFilters: [
              {
                  "i._id": { 
                      $in:[
                          ObjectId("5a377d62d21a3025a3c3aa4d"),
                          ObjectId("5a377d62d21a3025a3c3aa4c")
                      ]
                  }
              }
          ],
          multi: true
      }
  )
  </code></pre>
  
  <p><a href="https://docs.mongodb.com/manual/reference/operator/update/positional-filtered/" rel="nofollow noreferrer">https://docs.mongodb.com/manual/reference/operator/update/positional-filtered/</a></p>