Delete all of the records that match the query.
Delete all of the records that match the query. The query must not contain any "skip", "limit", or "select" clauses. Sends the delete operation to mongo, and waits for the delete operation to complete before returning to the caller.
Delete all of the records that match the query.
Delete all of the records that match the query. The query must not contain any "skip", "limit", or "select" clauses. Sends the delete operation to mongo, and returns - does not wait for the delete to be finished.
Gets the size of the query result.
Gets the size of the query result. This should only be called on queries that do not have limits or skips.
Returns the number of distinct values returned by a query.
Returns the number of distinct values returned by a query. The query must not have limit or skip clauses.
Returns a list of distinct values returned by a query.
Returns a list of distinct values returned by a query. The query must not have limit or skip clauses.
Checks if there are any records that match this query.
Return a string containing details about how the query would be executed in mongo.
Return a string containing details about how the query would be executed in mongo. In particular, this is useful for finding out what indexes will be used by the query.
Execute a query, returning no more than a specified number of result records.
Execute a query, returning no more than a specified number of result records. The query must not have a limit clause.
the maximum number of records to return.
Execute the query, returning all of the records that match the query.
Execute the query, returning all of the records that match the query.
a list containing the records that match the query
fetch a batch of results, and execute a function on each element of the list.
fetch a batch of results, and execute a function on each element of the list.
the function to invoke on the records that match the query.
a list containing the results of invoking the function on each record.
Finds the first record that matches the query (if any), fetches it, and then deletes it.
Finds the first record that matches the query (if any), fetches it, and then deletes it. A copy of the deleted record is returned to the caller.
Executes a function on each record value returned by a query.
Executes a function on each record value returned by a query.
a function to be invoked on each fetched record.
nothing.
Fetches the first record that matches the query.
Fetches the first record that matches the query. The query must not contain a "limited" clause.
an option record containing either the first result that matches the query, or None if there are no records that match.
Fetches the records that match the query in paginated form.
Fetches the records that match the query in paginated form. The query must not contain a "limit" clause.
the number of records to be contained in each page of the result.