title: .updateOne on MongoDB not working in Node.js
body: <p>I have the following code: </p>
  
  <pre><code>connection((db) =&gt; {
              db.collection('orders')
                  .updateOne(
                      { "_id": req.body._id}, // Filter
                      {"name": req.body.name} // Update
                  )
                  .then((obj) =&gt; {
                      console.log('Updated - ' + obj);
                      res.redirect('orders')
                  })
                  .catch((err) =&gt; {
                      console.log('Error: ' + err);
                  })
          })
  </code></pre>
  
  <p>I want to change the name in the order but it doesn't update it.
  The result in the console is </p>
  
  <p><code>Updated - {"n":0,"nModified":0,"ok":1}</code></p>
  
  <p>I tried to read the documentation but it's horrific</p>
  
  <p>EDIT: <code>{$set: {"name": req.body.name}},</code> didn't work as well</p>
  
  <p>EDIT 2: The passed ID matches the _id in the database. Could it be a problem that I'm querying for plain text ID while in the database it is referred to as "ObjectId('5a42ja...')"</p>