Using MongoDB with Mongoose — Updating Data

John Au-Yeung
3 min readJan 15, 2021
Photo by Lance Anderson on Unsplash

To make MongoDB database manipulation easy, we can use the Mongoose NPM package to make working with MongoDB databases easier.

In this article, we’ll look at how to use Mongoose to manipulate our MongoDB database.

Updating

We can update the first with the given key and value with the updateOne method.

--

--