The updateMany() method in detail.
conditions
The criteria used to filter documents. It specifies the query conditions in the form of a JSON object.
changes (Object)
The changes argument in updateOne() specifies modifications for the matching document. It’s an object where keys are field names, and values are new field values or update operators (e.g., unset, $inc) for advanced updates.
options (Object)
Offers an array of additional parameters for refining your query, such as ordering or limiting the number of results. You can utilize any Mongoose query options, allowing for extensive customization.