title: DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead?
body: <p>I am using mongoose <code>findOneAndUpdate</code> but still getting the error,</p>
  
  <blockquote>
    <p>DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead.</p>
  </blockquote>
  
  <p>But I am not even using <code>findAndModify</code>, why is it converting my query to <code>findAndModify</code>?</p>