MongoCollectionCount[MongoCollection[…]]
counts the number of documents in MongoCollection.
MongoCollectionCount[MongoCollection[…], query]
counts the number of documents in MongoCollection matching the query query.
MongoCollectionCount
MongoCollectionCount[MongoCollection[…]]
counts the number of documents in MongoCollection.
MongoCollectionCount[MongoCollection[…], query]
counts the number of documents in MongoCollection matching the query query.
更多信息和选项
- To use MongoCollectionCount, you first need to load MongoLink using Needs["MongoLink`"].
- query is an Association.
- See "Query and Projection Operators" in the MongoDB manual for available query operators.
- MongoCollectionCount corresponds to db.collection.count in the MongoDB manual.
技术笔记
相关指南
文本
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_2025_mongocollectioncount, author="Wolfram Research", title="{MongoCollectionCount}", year="2018", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionCount.html}", note=[Accessed: 13-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_mongocollectioncount, organization={Wolfram Research}, title={MongoCollectionCount}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionCount.html}, note=[Accessed: 13-April-2026]}