MongoLink`
MongoLink`

MongoCollectionReplaceOne

MongoCollectionReplaceOne[MongoCollection[],filter,replacement]

replaces one document that matches the filter filter with the new document defined by replacement.

Details and Options

Examples

Basic Examples  (1)

Connect to a client:

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

Replace the document that matches the filter <|"age"3|> with a new document:

Wolfram Research (2018), MongoCollectionReplaceOne, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionReplaceOne.html.

Text

Wolfram Research (2018), MongoCollectionReplaceOne, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionReplaceOne.html.

CMS

Wolfram Language. 2018. "MongoCollectionReplaceOne." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionReplaceOne.html.

APA

Wolfram Language. (2018). MongoCollectionReplaceOne. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionReplaceOne.html

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_mongocollectionreplaceone, organization={Wolfram Research}, title={MongoCollectionReplaceOne}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionReplaceOne.html}, note=[Accessed: 22-December-2024 ]}