title: How can I add 1 to a value in a MongoDB?
body: <p>When using <code>findOneAndUpdate</code> how can I add one to a value? In this case, I want to add 1 to the commandsUsed Object. Example Below:</p>
  <pre><code>await mongo().then(async (mongoose) =&gt; {
     try {
        await userSchema.findOneAndUpdate({
           _id: author.id,
        }, {
           _id: author.id,
           commandsUsed: //I want to add 1 to this Object
        }, {
           upsert: true,
    })
  </code></pre>