toxbootMongoCount
returns the number of objects that match the query.
toxbootMongoCount(mongo, query = NULL)
a mongo connection object returned from
toxbootConnectMongo()
a mongo.bson object returned from toxbootQueryBuild
. By
default query will match all documents in the collection.
num_results, an integer equal to the number of documents that match the query.