title: with the help of this code iam able to update only first value
body: <pre><code>const addingAttribute=async (req,res)=&gt;{
  let data = req.body
  let findPublisher=await publisherModel.find({$or:[{name:'Penguin'},{name:'HarperCollin'}]}).select({_id:1})
  let updateBook=await bookModel1.updateMany({publisher:findPublisher},{$set:data},{new:true})
  res.send({msg:updateBook})
  }
  </code></pre>
  <p>finding the publisher with the name Penguin and HarperCollin with the help of their _id
  updating the values in the book schema isHardCover is equal to true
  1--difficulty --with the help of this code i can update only the first value only
  2--difficulty2--if i use $and then iam getting only empty array</p>