title: Mogoose findOneAndUpdate Callback is not a function
body: <p>I am recieving an error when I try to update an existing document. I have looked at other solutions but I am unable to solve my issue.</p>
  
  <p>Error: </p>
  
  <pre><code>MongooseError: Callback must be a function, got [object Object]
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>formSchemas.findOneAndUpdate({'email':email, 'condition1': condition1, 'condition2': condition2},
          { $set: { "v1": v1, "v2": v2,
            "v3": v3, "v4": v4,
            "v5": v5 }},
            {new: true},
            {returnOriginal:false},
             function(err, doc){
              if (err){
                console.log(err);
                return res.send({
                  success: false,
                  message: 'Error somewhere!'
                });
              } 
              return res.send({
                success: true,
                message: 'Updated!'
              });
          }); // findoneandupdate
  </code></pre>
  
  <p>Where v1, v2.. are the things I want to update in mongo and the names of the fields in mongo.
  Not sure why the callback is not a function.</p>