title: MongoInvalidArgumentError: Update document requires atomic operators
body: <p>I am  going through a course on MongoDB. Below is my list of documents in a collection called 'flightData'. Below is result of find query:</p>
  <pre><code>flights&gt; db.flightData.find()
  [
    {
      _id: ObjectId(&quot;611aaa1c4a0269583c8d81b0&quot;),
      aircraft: 'AirBus A308',
      departingFrom: 'Mumbai',
      arrivalStation: 'Moscow',
      departureDate: '24/09/2021',
      departureTime: '01:44',
      arrivingAt: '12:00',
      isOneWay: false,
      status: {
        description: 'on time',
        lastUpdated: 'One hour ago',
        details: { contact: 'John Doe' }
      }
    },
    {
      _id: ObjectId(&quot;611aaa554a0269583c8d81b1&quot;),
      aircraft: 'AirBus A308',
      departingFrom: 'Kolkata',
      arrivalStation: 'Stockholm',
      departureDate: '24/09/2021',
      departureTime: '01:44',
      arrivingAt: '12:00',
      isOneWay: false,
      status: {
        description: 'on time',
        lastUpdated: 'One hour ago',
        details: { contact: 'Cool User' }
      }
    }
  ]
  </code></pre>
  <p>When they show the difference between update and updateMany through an example similar to below one:</p>
  <pre><code>flights&gt; db.flightData.update({_id:ObjectId(&quot;611aaa554a0269583c8d81b1&quot;)},{&quot;delayed&quot;:false})
  </code></pre>
  <p>In the lecture it works. However, in my case it throws below error:</p>
  <blockquote>
  <p>MongoInvalidArgumentError: Update document requires atomic operators</p>
  </blockquote>
  <p>Can someone please explain this behavior? Is it not supported for my version or something else?</p>
  <p>I am using MongoDB 5.0.2, mongosh 1.0.5</p>