How to update bulk record in mongo DB with different values?

I have records on my table like

{
  _id: '1234',
  name: 'name1',
 age: 32
}
{
  _id: '1235',
  name: 'name1',
 age: 34
}

So I want to update both or many records together with age: 34 for 1234 and 36 for 125. Is this possible to update these records in bulk?

You use bulkWrite(), creating one updateOne for each of the id you want to update specifying the value you want to set.

Each updateOne would look like:

{ updateOne: {
         filter: { id: "1234" },
         update: { $set: { age: 34 } }
      } }