MongoLink`
MongoLink`

MongoCollectionUpdateOne

MongoCollectionUpdateOne[MongoCollection[],filter,update]

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

更多信息和选项

范例

基本范例  (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 语言函数,https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html.

文本

Wolfram Research (2018),MongoCollectionUpdateOne,Wolfram 语言函数,https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html.

CMS

Wolfram 语言. 2018. "MongoCollectionUpdateOne." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionUpdateOne.html.

APA

Wolfram 语言. (2018). MongoCollectionUpdateOne. Wolfram 语言与系统参考资料中心. 追溯自 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: 22-November-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: 22-November-2024 ]}