title: update multi records and insert if not present
body: <p>Lets say my test data is</p>
  
  <pre><code>db.multiArr.insert({"ID" : "fruit1","Keys" : "apple"})
  db.multiArr.insert({"ID" : "fruit2","Keys" : "carrot"})
  db.multiArr.find({'ID': {$in: ['fruit1', 'fruit2']}})
  </code></pre>
  
  <p>if i want to update or insert a ID i can do it using</p>
  
  <pre><code>db.multiArr.update(
      {'ID': "fruit12"},
      {
          'ID': "fruit12"
          "$push": {
              "Keys": "tomato"
          }
      },
      upsert=True
  )
  </code></pre>
  
  <p>i want to update or insert multiple records, i know the below query inserts only 1 row</p>
  
  <pre><code>db.multiArr.update(
       {"ID": {"$in: ["fruit123", "fruit1234"]}},
       {"ID": "---", "Keys": "tomato"},
       upsert=true
  )
  </code></pre>
  
  <p>is there a way to update/insert multiple records?
  <a href="https://i.stack.imgur.com/LYopw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LYopw.png" alt="enter image description here"></a></p>