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

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"|>: