title: PUT request not updating data in DB. Status 200OK
body: <p>I have an issue with PUT update request. Found this problem is quite common but none of the answers out in web seems to work. Basically in Postman I receive status 200OK and &quot;success&quot; if no error found but the data in db does not update.</p>
  <pre><code>app.route(&quot;/articles/:articleTitle&quot;).put((req,res) =&gt; {
      Article.update(
        {title:req.params.articleTitle},
        {$set:{title:req.body.title, content:req.body.content}},
        (err) =&gt; {
          if(!err) {
            res.send(&quot;success&quot;)
          };
        });
  });
  </code></pre>
  <p><a href="https://i.stack.imgur.com/2mqyE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2mqyE.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/4BEle.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4BEle.png" alt="enter image description here" /></a></p>
  <p>I have tried updateOne but it doesn't work neither. I'm very new to all this and surely not seeing something obvious. Thanks for your help.</p>