MongoGetCollection[MongoDatabase[…], name]
connects to a collection name inside the database MongoDatabase[…].
MongoGetCollection[MongoClient[…],dbname,collname]
connects to a collection collname inside the database dbname using client MongoClient[…].
MongoGetCollection
MongoGetCollection[MongoDatabase[…], name]
connects to a collection name inside the database MongoDatabase[…].
MongoGetCollection[MongoClient[…],dbname,collname]
connects to a collection collname inside the database dbname using client MongoClient[…].
更多信息和选项
- To use MongoGetCollection, you first need to load MongoLink using Needs["MongoLink`"].
- MongoGetCollection[…] returns a MongoCollection object.
- MongoGetCollection[MongoDatabase[…],name] is equivalent to MongoDatabase[…]["name"].
- MongoGetCollection[MongoClient[…], dbname, collname] is equivalent to MongoClient[…][dbname, collname].
- If the collection does not exist, one will be created once a document is inserted.
- MongoGetCollection corresponds to db.getCollection() in the MongoDB manual.
技术笔记
相关指南
文本
Wolfram Research (2018),MongoGetCollection,Wolfram 语言函数,https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html.
CMS
Wolfram 语言. 2018. "MongoGetCollection." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html.
APA
Wolfram 语言. (2018). MongoGetCollection. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html 年
BibTeX
@misc{reference.wolfram_2025_mongogetcollection, author="Wolfram Research", title="{MongoGetCollection}", year="2018", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html}", note=[Accessed: 10-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_mongogetcollection, organization={Wolfram Research}, title={MongoGetCollection}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html}, note=[Accessed: 10-April-2026]}