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.

Details and Options

Examples

Basic Examples  (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 Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionCount.html.

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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