A command that targets the admin database only (administrative commands).
Performs aggregation operation using the aggregation pipeline.
A MongoDB Command.
A MongoDB Command.
Basically, it is a query that is performed on any db.$cmd collection.
Counts the number of documents in a collection.
Counts the number of documents in a collection.
The name of the collection to count.
Optional. A query that selects which documents to count in a collection.
Optional. The maximum number of matching documents to return.
Optional. The number of matching documents to skip before returning results.
Optional. The index to use. Specify either the index name as a string or the index specification document.
Builds one or more indexes on a collection.
Builds one or more indexes on a collection.
Specifies the indexes to create. Each document in the array specifies a separate index.
The delete command removes documents from a collection.
The delete command removes documents from a collection. A single delete command can contain multiple delete specifications. The command cannot operate on capped collections.
The name of the target collection.
An array of one or more delete statements to perform in the named collection.
Optional. If true, then when a delete statement fails, return without performing the remaining delete statements. If false, then when a delete statement fails, continue with the remaining delete statements, if any. Defaults to true.
Optional. A document expressing the write concern of the delete command. Omit to use the default write concern.
Delete statement.
Delete statement.
The query that matches documents to delete.
The number of matching documents to delete. Specify either a 0 to delete all matching documents or 1 to delete a single document.
Finds the distinct values for a specified field across a single collection.
Finds the distinct values for a specified field across a single collection.
The name of the collection to query for distinct values.
The field for which to return distinct values.
Optional. A query that specifies the documents from which to retrieve the distinct values.
Removes an entire collection from a database.
Removes an entire collection from a database. This command also removes any indexes associated with the dropped collection.
The findAndModify command modifies and returns a single document.
The findAndModify command modifies and returns a single document. By default, the returned document does not include the modifications made on the update. To return the document with the modifications made on the update, use the new option.
The collection against which to run the command.
Optional. The selection criteria for the modification. Although the query may match multiple documents, findAndModify will only select one document to modify.
Optional. Determines which document the operation modifies if the query selects multiple documents. findAndModify modifies the first document in the sort order specified by this argument.
Must specify either the remove or the update field. Remove removes the document specified in the query field. Set this to true to remove the selected document. The default is false. Update performs an update of the selected document. The update field employs the same update operators or field: value specifications to modify the selected document.
Optional. When true, returns the modified document rather than the original. The findAndModify method ignores the new option for remove operations. The default is false.
Optional. A subset of fields to return. The fields document specifies an inclusion of a field with 1.
Optional. Used in conjunction with the update field. When true, findAndModify creates a new document if no document matches the query, or if documents match the query, findAndModify performs an update. To avoid multiple upserts, ensure that the query fields are uniquely indexed. The default is false.
Use getnonce to generate a one-time password for authentication.
Specifies the index’s fields. For each field, specify a key-value pair in which the key is the name of the field to index and the value is either the index direction or index type. If specifying direction, specify 1 for ascending or -1 for descending.
A name that uniquely identifies the index.
Builds the index in the background so that building an index does not block other database activities. Specify true to build in the background. The default value is false.
Creates a unique index so that the collection will not accept insertion of documents where the index key or keys match an existing value in the index. Specify true to create a unique index. The default value is false.
If true, the index only references documents with the specified field. These indexes use less space but behave differently in some situations (particularly sorts). The default value is false.
Specifies a value, in seconds, as a TTL to control how long MongoDB retains documents in this collection.
Allows users to specify configuration to the storage engine on a per-index basis when creating an index.
For text indexes, a document that contains field and weight pairs. The weight is an integer ranging from 1 to 99,999 and denotes the significance of the field relative to the other indexed fields in terms of the score. You can specify weights for some or all the indexed fields. The default value is 1.
For text indexes, the language that determines the list of stop words and the rules for the stemmer and tokenizer. The default value is english.
For text indexes, the name of the field, in the collection’s documents, that contains the override language for the document. The default value is language.
For text indexes, the text index version number. Version can be either 1 or 2.
For 2dsphere indexes, the 2dsphere index version number. Version can be either 1 or 2.
For 2d indexes, the number of precision of the stored geohash value of the location data.
For 2d indexes, the lower inclusive boundary for the longitude and latitude values. The default value is -180.0.
For 2d indexes, the upper inclusive boundary for the longitude and latitude values. The default value is 180.0.
For geoHaystack indexes, specify the number of units within which to group the location values; i.e. group in the same bucket those location values that are within the specified number of units to each other. The value must be greater than 0.
The namespace (i.e. <database>.<collection>) of the collection for which to create the index. If you omit ns, MongoDB generates the namespace.
The insert command inserts one or more documents and returns a document containing the status of all inserts.
The insert command inserts one or more documents and returns a document containing the status of all inserts.
The name of the target collection.
An array of one or more documents to insert into the named collection.
Optional. If true, then when an insert of a document fails, return without inserting any remaining documents listed in the inserts array. If false, then when an insert of a document fails, continue to insert the remaining documents. Defaults to true.
Optional. A document that expresses the write concern of the insert command. Omit to use the default write concern.
Retrieve information, i.e.
Retrieve information, i.e. the name and options, about the collections in a database.
Optional. A query expression to filter the list of collections.
MongoDB 3.0.0
Terminates the current authenticated session
The update command modifies documents in a collection.
The update command modifies documents in a collection. A single update command can contain multiple update statements.
The name of the target collection.
An array of one or more update statements to perform in the named collection.
Optional. If true, then when an update statement fails, return without performing the remaining update statements. If false, then when an update fails, continue with the remaining update statements, if any. Defaults to true.
Optional. A document expressing the write concern of the update command. Omit to use the default write concern.
Update statement.
Update statement.
The query that matches documents to update.
The modifications to apply.
Optional. If true, perform an insert if no documents match the query. If both upsert and multi are true and no documents match the query, the update operation inserts only a single document.
Optional. If true, updates all documents that meet the query criteria. If false, limit the update to one document that meet the query criteria. Defaults to false.
Performs aggregation operation using the aggregation pipeline. The pipeline allows users to process data from a collection with a sequence of stage-based manipulations.
An array of aggregation pipeline stages that process and transform the document stream as part of the aggregation pipeline.
Optional. Specifies to return the information on the processing of the pipeline.
Optional. Enables writing to temporary files. When set to true, aggregation stages can write data to the _tmp subdirectory in the dbPath directory.
Optional. Specify a document that contains options that control the creation of the cursor object.