MongoDB and Mongoose - Perform New Updates on a Document Using model.findOneAndUpdate()

Hey there,

Please update the message to include your code. The code was not automatically inserted by the help button.

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').