MongoLink`
MongoLink`

MongoCollectionUpdateOne

MongoCollectionUpdateOne[MongoCollection[],filter,update]

updates one document that matches the filter filter with the modification defined by update.

Details and Options

Examples

Basic Examples  (1)

Connect to a client:

Connect to a the "WolframTestCollection" collection in the "WolframTestDB" database:

Update the age field of the first document that matches the filter <|"age"5|>:

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

BibTeX

@misc{reference.wolfram_2024_mongocollectionupdateone, author="Wolfram Research", title="{MongoCollectionUpdateOne}", year="2018", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html}", note=[Accessed: 26-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_mongocollectionupdateone, organization={Wolfram Research}, title={MongoCollectionUpdateOne}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html}, note=[Accessed: 26-April-2024 ]}