toxbootMongoCount: Get number of documents that match query.

Description Usage Arguments Value

View source: R/toxbootMonitorFuncs.R

Description

toxbootMongoCount returns the number of objects that match the query.

Usage

1
toxbootMongoCount(mongo, query = NULL)

Arguments

mongo,

a mongo connection object returned from toxbootConnectMongo()

query,

a mongo.bson object returned from toxbootQueryBuild. By default query will match all documents in the collection.

Value

num_results, an integer equal to the number of documents that match the query.


toxboot documentation built on Nov. 26, 2018, 1:04 a.m.