In MongoDB, an Update operation consists of adding, removing, or modifying fields in one or more documents. This page provides examples.
You can update documents using:
Your programming language's driver
An aggregation pipeline (see Update a Document with Aggregation Pipeline)