#include <mongocxx/v_noabi/mongocxx/model/delete_many.hpp>
A MongoDB delete operation that removes multiple documents.
Public Member Functions | |
| delete_many (bsoncxx::v_noabi::document::view_or_value filter) | |
| Constructs a delete operation that will delete all documents matching the filter. | |
| delete_many (v1::bulk_write::delete_many op) | |
| Construct with the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | collation () const |
| Gets the collation option for this delete operation. | |
| delete_many & | collation (bsoncxx::v_noabi::document::view_or_value collation) |
| Sets the collation for this delete operation. | |
| bsoncxx::v_noabi::document::view_or_value const & | filter () const |
| Gets the filter for this delete operation. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::hint > const & | hint () const |
| Gets the current hint. | |
| delete_many & | hint (v_noabi::hint index_hint) |
| Sets the index to use for this operation. | |
| operator v1::bulk_write::delete_many () const | |
| Convert to the mongocxx::v1 equivalent. | |
Construct with the mongocxx::v1 equivalent.
|
inlineexplicit |
Constructs a delete operation that will delete all documents matching the filter.
| filter | Document representing the criteria for deletion. |
|
inline |
Gets the collation option for this delete operation.
|
inline |
Sets the collation for this delete operation.
| collation | The new collation. |
|
inline |
Gets the filter for this delete operation.
|
inline |
Gets the current hint.
|
inline |
Sets the index to use for this operation.
| index_hint | Object representing the index to use. |
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.