17 #include <bsoncxx/document/view_or_value.hpp>
18 #include <bsoncxx/stdx/optional.hpp>
19 #include <mongocxx/hint.hpp>
20 #include <mongocxx/stdx.hpp>
22 #include <mongocxx/config/prelude.hpp>
25 inline namespace v_noabi {
39 explicit delete_many(bsoncxx::document::view_or_value filter);
46 const bsoncxx::document::view_or_value&
filter()
const;
72 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
93 const stdx::optional<class hint>&
hint()
const;
96 bsoncxx::document::view_or_value _filter;
98 stdx::optional<bsoncxx::document::view_or_value> _collation;
99 stdx::optional<class hint> _hint;
106 #include <mongocxx/config/postlude.hpp>
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:31
Class representing a MongoDB delete operation that removes multiple documents.
Definition: delete_many.hpp:31
const bsoncxx::document::view_or_value & filter() const
Gets the filter for this delete operation.
const stdx::optional< class hint > & hint() const
Gets the current hint.
delete_many(bsoncxx::document::view_or_value filter)
Constructs a delete operation that will delete all documents matching the filter.
delete_many & hint(class hint index_hint)
Sets the index to use for this operation.
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Gets the collation option for this delete operation.
delete_many & collation(bsoncxx::document::view_or_value collation)
Sets the collation for this delete operation.
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24