title: updateMany with different values MongoDB
body: <p>I have a collection in MongoDB called &quot;Users&quot;. Here, I want to update two specefic documents with different values on request. So far, I have succeded with selecting them both, but I can't seem to find a way to specefy the values. I can only give them the same value. Here is what I have so far:</p>
  <pre><code>db.db(DBName).collection(&quot;Users&quot;).updateMany(
  
  {id: {$in: [1, 2]}}, 
  
  {$set: {Value: &quot;test&quot;}}
  </code></pre>
  <p>This works fine but both of them of cause gains the value &quot;test&quot;. Is there a way to specefy what the id: 1 gains the value &quot;test1&quot; and the id: 2 gains the value &quot;test2&quot;?</p>