title: Mongoose deleteOne, findOneAndDelete, findOneAndRemove not working
body: <p>I tried the following code (other similar functions as well) and it did work initially but did not work later. There is a item with matching id and this did not give any error and executes but the document is not removed from MongoDB</p>
  <pre class="lang-js prettyprint-override"><code>CompanyModel.findOneAndDelete({ id: data.id }, function (err, doc) {
    if (err) {
      console.error(err);
    }
  });
  </code></pre>