Aggregates documents according to the given aggregation pipeline, which
must end with an $out
stage specifying the collection where results
may be found.
Returns the stream of results of aggregating documents according to the given aggregation pipeline.
All discoverable collections on the server.
The collections in the named database.
Creates the given collection.
Names of all discoverable databases on the server.
Ensure the given collection exists, creating it if not.
Returns the first document in the collection.
Returns the name of the first database where an insert to the collection having the given name succeeds.
Set of indexes on a collection, including only simple index types and ignoring the rest.
Inserts the given documents into the collection.
Attempts to insert as many of the given documents into the collection as possible.
Attempts to insert as many of the given documents into the collection as possible. The number of documents inserted is returned, if possible, and may be smaller than the original amount if any documents failed to insert.
Executes the map-reduce job described by cfg
, sourcing documents from
src
and writing the output to dst
.
Rename src
to dst
using the given semantics.
Returns the version of the MongoDB server the client is connected to.