Get the collection name.
Get current index hint for collection.
Get the full collection namespace.
The current read concern values.
The current write concern values.
Execute an aggregation framework pipeline against the collection, needs MongoDB >= 2.2
Array containing all the aggregation framework commands for the execution.
The command result callback.
Execute an aggregation framework pipeline against the collection, needs MongoDB >= 2.2
Array containing all the aggregation framework commands for the execution.
Optional.
The command result callback.
Execute an aggregation framework pipeline against the collection, needs MongoDB >= 2.2
Array containing all the aggregation framework commands for the execution.
The command result callback.
Execute an aggregation framework pipeline against the collection, needs MongoDB >= 2.2
Array containing all the aggregation framework commands for the execution.
Optional.
Optional
BulkWrite.
Bulk operations to perform.
The command result callback.
BulkWrite.
Bulk operations to perform.
Optional.
BulkWrite.
Bulk operations to perform.
Optional settings.
The command result callback.
Count number of matching documents in the db to a query.
The query for the count.
The command result callback.
Count number of matching documents in the db to a query.
The query for the count.
Optional.
Count number of matching documents in the db to a query.
The query for the count=
Optional settings.
The command result callback.
Creates an index on the db and collection collection.
Defines the index.
The command result callback.
Creates an index on the db and collection collection.
Defines the index.
Optional.
Creates an index on the db and collection collection.
Defines the index.
Optional settings.
The command result callback.
CreateIndexes.
An array of index specifications to be created.
CreateIndexes.
An array of index specifications to be created.
The command result callback.
Delete multiple documents on MongoDB.
The Filter used to select the documents to remove.
The command result callback.
Delete multiple documents on MongoDB.
The Filter used to select the documents to remove.
Optional.
Delete multiple documents on MongoDB.
The Filter used to select the documents to remove.
Optional settings.
The command result callback.
Delete a document on MongoDB.
The Filter used to select the document to remove.
The command result callback.
Delete a document on MongoDB.
The Filter used to select the document to remove.
Optional.
Delete a document on MongoDB.
The Filter used to select the document to remove.
Optional settings.
The command result callback.
The distinct command returns returns a list of distinct values for the given key across a collection.
Field of the document to find distinct values for.
The query for filtering the set of documents to which we apply the distinct filter.
The command result callback.
The distinct command returns returns a list of distinct values for the given key across a collection.
Field of the document to find distinct values for.
The query for filtering the set of documents to which we apply the distinct filter.
Optional.
The distinct command returns returns a list of distinct values for the given key across a collection.
Field of the document to find distinct values for.
The query for filtering the set of documents to which we apply the distinct filter.
Optional settings.
The command result callback.
Drop the collection from the database, removing it permanently. New accesses will create a new collection.
Drop the collection from the database, removing it permanently. New accesses will create a new collection.
The command result callback.
Drops an index from this collection.
Name of the index to drop.
The command result callback.
Drops an index from this collection.
Name of the index to drop.
Optional.
Drops an index from this collection.
Name of the index to drop.
Optional settings.
The command result callback.
Drops all indexes from this collection.
Drops all indexes from this collection.
The command result callback.
Creates a cursor for a query that can be used to iterate over results from MongoDB.
The cursor query object.
Creates a cursor for a query that can be used to iterate over results from MongoDB.
The cursor query object.
Fetches the first document that matches the query.
Query for find Operation.
The command result callback.
Fetches the first document that matches the query.
Query for find Operation.
Optional.
Fetches the first document that matches the query.
Query for find Operation.
Optional settings.
The command result callback.
Find a document and delete it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
The collection result callback.
Find a document and delete it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Optional.
Find a document and delete it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Optional settings.
The collection result callback.
Find a document and replace it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Document replacing the matching document.
The collection result callback.
Find a document and replace it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Document replacing the matching document.
Optional.
Find a document and replace it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Document replacing the matching document.
Optional settings.
The collection result callback.
Find a document and update it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Update operations to be performed on the document.
The collection result callback.
Find a document and update it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Update operations to be performed on the document.
Optional.
Find a document and update it in one atomic operation, requires a write lock for the duration of the operation.
Document selection filter.
Update operations to be performed on the document.
Optional settings.
The collection result callback.
Execute a geo search using a geo haystack index on a collection.
Point to search on the x axis, ensure the indexes are ordered in the same order.
Point to search on the y axis, ensure the indexes are ordered in the same order.
The command result callback.
Execute a geo search using a geo haystack index on a collection.
Point to search on the x axis, ensure the indexes are ordered in the same order.
Point to search on the y axis, ensure the indexes are ordered in the same order.
Optional.
Execute a geo search using a geo haystack index on a collection.
Point to search on the x axis, ensure the indexes are ordered in the same order.
Point to search on the y axis, ensure the indexes are ordered in the same order.
Optional settings
The command result callback.
Execute the geoNear command to search for items in the collection.
Point to search on the x axis, ensure the indexes are ordered in the same order.
Point to search on the y axis, ensure the indexes are ordered in the same order.
The command result callback.
Execute the geoNear command to search for items in the collection.
Point to search on the x axis, ensure the indexes are ordered in the same order.
Point to search on the y axis, ensure the indexes are ordered in the same order.
Optionals.
Execute the geoNear command to search for items in the collection.
Point to search on the x axis, ensure the indexes are ordered in the same order.
Point to search on the y axis, ensure the indexes are ordered in the same order.
Optional settings.
The command result callback.
Run a group command across a collection.
An object, array or function expressing the keys to group by.
An optional condition that must be true for a row to be considered.
Initial value of the aggregation counter object.
The reduce function aggregates (reduces) the objects iterated.
An optional function to be run on each item in the result set just before the item is returned.
Specify if you wish to run using the internal group command or using eval, default is true.
The command result callback.
Run a group command across a collection.
An object, array or function expressing the keys to group by.
An optional condition that must be true for a row to be considered.
Initial value of the aggregation counter object.
The reduce function aggregates (reduces) the objects iterated.
An optional function to be run on each item in the result set just before the item is returned.
Specify if you wish to run using the internal group command or using eval, default is true.
Optional.
Run a group command across a collection.
An object, array or function expressing the keys to group by.
An optional condition that must be true for a row to be considered.
Initial value of the aggregation counter object.
The reduce function aggregates (reduces) the objects iterated.
An optional function to be run on each item in the result set just before the item is returned.
Specify if you wish to run using the internal group command or using eval, default is true.
Optional settings.
The command result callback.
Checks if one or more indexes exist on the collection, fails on first non-existing index.
One or more index names to check.
Checks if one or more indexes exist on the collection, fails on first non-existing index.
One or more index names to check.
The command result callback.
Retrieves this collections index info.
The command result callback
Retrieves this collections index info.
Optional.
Retrieves this collections index info.
Optional settings.
The command result callback.
Retrieve all the indexes on the collection.
Retrieve all the indexes on the collection.
The command result callback.
Initiate an In order bulk write operation, operations will be serially executed in the order they are added, creating a new operation for each switch in types.
Optional.
Initiate a Out of order batch write operation. All operations will be buffered into insert/update/remove commands executed out of order.
Optional.
InsertMany.
Documents to insert.
The command result callback.
InsertMany.
Documents to insert.
Optional.
InsertMany.
Documents to insert.
Optional settings.
The command result callback.
InsertOne.
Document to insert.
The command result callback.
InsertOne.
Document to insert.
Optional.
InsertOne.
Document to insert.
Optional settings.
The command result callback.
Returns if the collection is a capped collection.
Returns if the collection is a capped collection.
The results callback.
Get the list of all indexes information for the collection.
Optional.
Run Map Reduce across a collection. Be aware that the inline option for out will return an array of results not a collection.
The mapping function.
The reduce function.
The command result callback.
Run Map Reduce across a collection. Be aware that the inline option for out will return an array of results not a collection.
The mapping function.
The reduce function.
Optional.
Run Map Reduce across a collection. Be aware that the inline option for out will return an array of results not a collection.
The mapping function.
The reduce function.
Optional settings.
The command result callback.
Returns the options of the collection.
Returns the options of the collection.
The results callback.
Return N number of parallel cursors for a collection allowing parallel reading of entire collection. There are no ordering guarantees for returned results.
The command result callback.
Return N number of parallel cursors for a collection allowing parallel reading of entire collection. There are no ordering guarantees for returned results.
Optional.
Return N number of parallel cursors for a collection allowing parallel reading of entire collection. There are no ordering guarantees for returned results.
Optional settings.
The command result callback.
Reindex all indexes on the collection.
Reindex all indexes on the collection.
The command result callback.
Rename the collection.
New name of of the collection.
The results callback.
Rename the collection.
New name of of the collection.
Optional.
Rename the collection.
New name of of the collection.
Optional settings.
The results callback.
Replace a document on MongoDB.
The Filter used to select the document to update.
The Document that replaces the matching document.
The command result callback.
Replace a document on MongoDB.
The Filter used to select the document to update.
The Document that replaces the matching document.
Optional.
Replace a document on MongoDB.
The Filter used to select the document to update.
The Document that replaces the matching document.
Optional settings.
The command result callback.
Get all the collection statistics.
The collection result callback.
Get all the collection statistics.
Optional.
Get all the collection statistics.
Optional settings.
The collection result callback.
Update multiple documents on MongoDB.
The Filter used to select the document to update.
The update operations to be applied to the document.
The command result callback.
Update multiple documents on MongoDB.
The Filter used to select the document to update.
The update operations to be applied to the document.
Optional.
Update multiple documents on MongoDB.
The Filter used to select the document to update.
The update operations to be applied to the document.
Optional settings.
The command result callback.
Update a single document on MongoDB.
The Filter used to select the document to update.
The update operations to be applied to the document.
The command result callback.
Update a single document on MongoDB.
The Filter used to select the document to update.
The update operations to be applied to the document.
Optional.
Update a single document on MongoDB.
The Filter used to select the document to update.
The update operations to be applied to the document.
Optional settings.
The command result callback.
Generated using TypeDoc
Create a new ObjectID instance.
http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html