A representation of a BSON document field whose value is another BSON document.
The options to apply to a bulk write.
The options to apply to a count operation.
Options for creating a collection
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 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.
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 to apply to a bulk write.
The options to apply to a count operation.
Options for creating a collection
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.
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.
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