MongoLink`
MongoLink`
MongoCollectionUpdateOne
MongoCollectionUpdateOne[MongoCollection[…],filter,update]
updates one document that matches the filter filter with the modification defined by update.
Details and Options
- To use MongoCollectionUpdateOne, 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.
- MongoCollectionUpdateOne corresponds to db.collection.updateOne() in the MongoDB documentation.
Examples
Wolfram Research (2018), MongoCollectionUpdateOne, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html.
Text
Wolfram Research (2018), MongoCollectionUpdateOne, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html.
CMS
Wolfram Language. 2018. "MongoCollectionUpdateOne." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html.
APA
Wolfram Language. (2018). MongoCollectionUpdateOne. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html