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 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 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
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 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.
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 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 to a $push
update operator.
1.0
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
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
The model package containing models and options that help describe
MongoCollection
operations