MongoLink`
MongoLink`

MongoCollectionCount

MongoCollectionCount[MongoCollection[]]

counts the number of documents in MongoCollection.

MongoCollectionCount[MongoCollection[], query]

counts the number of documents in MongoCollection matching the query query.

更多信息和选项

范例

基本范例  (1)

Connect to a client:

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

Count the number of documents in the collection:

Count the number of documents in the collection that match the query <|"sex""female"|>:

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

文本

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

CMS

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

APA

Wolfram 语言. (2018). MongoCollectionCount. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionCount.html 年

BibTeX

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

BibLaTeX

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