title: Mongoose FindOneAndUpdate only does findOne
body: <p>I'm trying to run a findOneAndUpdate query with my mongoose model, but my document is not updated, so I activated debug mode on mongoose requests and whenever I run the request, the debugs shows that it only runs a findOne request</p>
  <p>Here is my updateData function, the model is automatically identified, i've checked filters and data and they contains something</p>
  <pre><code>async updateData(tableName, filters, data) {
          let res
          if (!filters || isEmpty(filters)) return {sucess: false, message: &quot;Please apply filters for table &quot; + tableName}
          let table = getModel(tableName)
          await table.findOneAndUpdate(filters, data, {upsert: false})
              .then(() =&gt; {
                  res = {sucess: true, message: &quot;Update sucessfull&quot;}
              })
              .catch((err) =&gt; res = {sucess: false, message: &quot;An error occured while updating your data. Error is : &quot; + err})
          return res
      }
  </code></pre>
  <p>Here is the debug</p>
  <pre><code>filters =  { username: 'lolilol' }
  data =  {&quot;username&quot;: &quot;test&quot;}
  Mongoose: user.findOne({ username: 'lolilol' }, { upsert: false, projection: {} })
  </code></pre>
  <p>do you have any idea on what I'm missing ? Thanks</p>