MongoCollectionUpdateMany[MongoCollection[…],filter,update]
updates one or more documents that match the filter filter with the modification defined by update.


MongoCollectionUpdateMany
MongoCollectionUpdateMany[MongoCollection[…],filter,update]
updates one or more documents that match the filter filter with the modification defined by update.
Details and Options
- To use MongoCollectionUpdateMany, you first need to load MongoLink using Needs["MongoLink`"].
- filter is an Association. The the same query syntax is used as in MongoCollectionFind. The list of available query selectors can be found in the MongoDB documentation.
- update is an Association. Each key must be an update operator. The list of available update operators can be found in the MongoDB documentation.
- The following options are supported:
-
"Upsert" False whether to perform an insert if no document matches the filter. "WriteConcern" Automatic the write concern to use. - "WriteConcern" can either be Automatic, or a MongoWriteConcern object.
- More information about the behaviour of "Upsert" can be found in the MongoDB documentation.
- MongoCollectionUpdateMany corresponds to db.Collection.updateMany.
Tech Notes
Related Guides
Text
Wolfram Research (2018), MongoCollectionUpdateMany, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateMany.html.
CMS
Wolfram Language. 2018. "MongoCollectionUpdateMany." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateMany.html.
APA
Wolfram Language. (2018). MongoCollectionUpdateMany. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateMany.html
BibTeX
@misc{reference.wolfram_2025_mongocollectionupdatemany, author="Wolfram Research", title="{MongoCollectionUpdateMany}", year="2018", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateMany.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_mongocollectionupdatemany, organization={Wolfram Research}, title={MongoCollectionUpdateMany}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateMany.html}, note=[Accessed: 16-August-2025]}