A representation of a BSON document field whose value is another BSON document.
The options for a $bucketAuto aggregation pipeline stage
The options for a $bucketAuto aggregation pipeline stage
1.2
Granularity values for automatic bucketing.
Granularity values for automatic bucketing.
1.2
The options for a $bucket aggregation pipeline stage
The options for a $bucket aggregation pipeline stage
1.2
The options to apply to a bulk write.
The collation options.
The collation alternative options.
The collation configuration of how character cases are handled
The collation max variable options
The collation configuration of how differences between characters are handled.
The options to apply to a count operation.
Options for creating a collection
The options to apply to the command when creating indexes.
The options to apply to the command when creating indexes.
2.2
Options for creating a view
Options for creating a view
1.2
Requires MongoDB 3.4 or greater
A model describing the removal of all documents matching the query filter.
A model describing the removal of at most one document matching the query filter.
The options to apply for delete operations
The options to apply to the command when creating indexes.
The options to apply to the command when creating indexes.
2.2
Defines a Facet for use in $facet pipeline stages.
Defines a Facet for use in $facet pipeline stages.
1.2
A helper to define new fields for the $addFields pipeline stage
A helper to define new fields for the $addFields pipeline stage
1.2
The options to apply to an operation that atomically finds a document and deletes it.
The options to apply to an operation that atomically finds a document and replaces it.
The options to apply to an operation that atomically finds a document and updates it.
The options to apply to a find operation.
The options for a graphLookup aggregation pipeline stage
The options for a graphLookup aggregation pipeline stage
1.2
A model describing the creation of a single index.
The default options for a collection to apply on the creation of indexes.
The default options for a collection to apply on the creation of indexes.
1.1
Requires MongoDB 3.2 or greater
The options to apply to the creation of an index.
The options to apply to an operation that inserts multiple documents into a collection.
A model describing an insert of a single document.
The options to apply to an operation that inserts a single document into a collection.
The options to apply to an operation that inserts a single document into a collection.
1.1
Requires MongoDB 3.2 or greater
The map reduce to collection actions.
The map reduce to collection actions.
These actions are only available when passing out a collection that already exists. This option is not available on secondary members of replica sets. The Enum values dictate what to do with the output collection if it already exists when the map reduce is run.
The options to apply to a $push
update operator.
The options to apply when renaming a collection
A model describing the replacement of at most one document that matches the query filter.
Indicates which document to return, the original document before change or the document after the change
Text search options for the Filters text helper
The options for an unwind aggregation pipeline stage
The options for an unwind aggregation pipeline stage
1.1
Requires MongoDB 3.2 or greater
A model describing an update to all documents that matches the query filter.
A model describing an update to all documents that matches the query filter. The update to apply must include only update operators.
A model describing an update to at most one document that matches the query filter.
A model describing an update to at most one document that matches the query filter. The update to apply must include only update operators.
The options to apply when updating documents.
Determines whether to error on invalid documents or just warn about the violations but allow invalid documents.
Determines whether to error on invalid documents or just warn about the violations but allow invalid documents.
1.1
Requires MongoDB 3.2 or greater
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
1.1
Requires MongoDB 3.2 or greater
Validation options for documents being inserted or updated in a collection
Validation options for documents being inserted or updated in a collection
1.1
Requires MongoDB 3.2 or greater
A base class for models that can be used in a bulk write operations.
Builders for accumulators used in the group pipeline stage of an aggregation pipeline.
Builders for accumulators used in the group pipeline stage of an aggregation pipeline.
1.0
Builders for aggregation pipeline stages.
Builders for aggregation pipeline stages.
1.0
A representation of a BSON document field whose value is another BSON document.
The options for a $bucketAuto aggregation pipeline stage
The options for a $bucketAuto aggregation pipeline stage
1.2
Granularity values for automatic bucketing.
Granularity values for automatic bucketing.
1.2
The options for a $bucket aggregation pipeline stage
The options for a $bucket aggregation pipeline stage
1.2
The options to apply to a bulk write.
The options regarding collation support in MongoDB 3.4+
The options regarding collation support in MongoDB 3.4+
1.2
Requires MongoDB 3.4 or greater
Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.
Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.
1.2
Requires MongoDB 3.4 or greater
Collation support allows the specific configuration of how character cases are handled.
Collation support allows the specific configuration of how character cases are handled.
1.2
Requires MongoDB 3.4 or greater
Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.
Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.
CollationMaxVariable
controls which characters are affected by CollationAlternate$.SHIFTED.
1.2
Requires MongoDB 3.4 or greater
Collation support allows the specific configuration of how character cases are handled.
Collation support allows the specific configuration of how character cases are handled.
1.2
Requires MongoDB 3.4 or greater
The options to apply to a count operation.
Options for creating a collection
Options for creating a view
Options for creating a view
1.2
Requires MongoDB 3.4 or greater
A model describing the removal of all documents matching the query filter.
A model describing the removal of at most one document matching the query filter.
The options to apply for delete operations.
Defines a Facet for use in $facet pipeline stages.
Defines a Facet for use in $facet pipeline stages.
1.2
A helper to define new fields for the $addFields pipeline stage
A helper to define new fields for the $addFields pipeline stage
1.2
A factory for query filters.
A factory for query filters. A convenient way to use this class is to statically import all of its methods, which allows usage like:
collection.find(and(eq("x", 1), lt("y", 3)))
1.0
The options to apply to an operation that atomically finds a document and deletes it.
The options to apply to an operation that atomically finds a document and replaces it.
The options to apply to an operation that atomically finds a document and updates it.
The options to apply to a find operation.
The options for a graphLookup aggregation pipeline stage
The options for a graphLookup aggregation pipeline stage
1.2
A model describing the creation of a single index.
Options for creating an index
The options to apply to the creation of an index.
A factory for defining index keys.
A factory for defining index keys. A convenient way to use this class is to statically import all of its methods, which allows usage like:
collection.createIndex(compoundIndex(ascending("x"), descending("y")))
1.0
The options to apply to an operation that inserts multiple documents into a collection.
A model describing an insert of a single document.
The options to apply to an operation that inserts a single document into a collection.
The options to apply to an operation that inserts a single document into a collection.
1.1
Requires MongoDB 3.2 or greater
The map reduce to collection actions.
The map reduce to collection actions.
These actions are only available when passing out a collection that already exists. This option is not available on secondary members of replica sets. The Enum values dictate what to do with the output collection if it already exists when the map reduce is run.
1.0
A factory for projections.
A factory for projections. A convenient way to use this class is to statically import all of its methods, which allows usage like:
collection.find().projection(fields(include("x", "y"), excludeId()))
1.0
The options to apply to a $push
update operator.
The options to apply when renaming a collection
A model describing the replacement of at most one document that matches the query filter.
Indicates which document to return, the original document before change or the document after the change
Indicates which document to return, the original document before change or the document after the change
1.0
A factory for sort specifications.
A factory for sort specifications. A convenient way to use this class is to statically import all of its methods, which allows usage like:
collection.find().sort(orderBy(ascending("x", "y"), descending("z")))
1.0
Text search options for the Filters text helper
Text search options for the Filters text helper
1.1
The options for an unwind aggregation pipeline stage
The options for an unwind aggregation pipeline stage
1.1
Requires MongoDB 3.2 or greater
A model describing an update to all documents that matches the query filter.
A model describing an update to all documents that matches the query filter. The update to apply must include only update operators.
A model describing an update to at most one document that matches the query filter.
A model describing an update to at most one document that matches the query filter. The update to apply must include only update operators.
The options to apply when updating documents.
A factory for document updates.
A factory for document updates. A convenient way to use this class is to statically import all of its methods, which allows usage like:
collection.updateOne(eq("x", 1), set("x", 2))
1.0
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
1.1
Requires MongoDB 3.2 or greater
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
1.1
Requires MongoDB 3.2 or greater
Validation options for documents being inserted or updated in a collection
Validation options for documents being inserted or updated in a collection
1.1
Requires MongoDB 3.2 or greater
The model package containing models and options that help describe
MongoCollection
operations