MongoDB C++ Driver 4.1.0
|
#include <mongocxx/v_noabi/mongocxx/model/delete_one.hpp>
A MongoDB delete operation that removes a single document.
Public Member Functions | |
delete_one (bsoncxx::v_noabi::document::view_or_value filter) | |
Constructs a delete operation that will delete the first document matching the filter. | |
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | collation () const |
Gets the collation option for this delete operation. | |
delete_one & | 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 on this delete operation. | |
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::hint > const & | hint () const |
Gets the current hint. | |
delete_one & | hint (mongocxx::v_noabi::hint index_hint) |
Sets the index to use for this operation. | |
mongocxx::v_noabi::model::delete_one::delete_one | ( | bsoncxx::v_noabi::document::view_or_value | filter | ) |
Constructs a delete operation that will delete the first document matching the filter.
filter | Document representing the criteria for deletion. |
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & mongocxx::v_noabi::model::delete_one::collation | ( | ) | const |
Gets the collation option for this delete operation.
delete_one & mongocxx::v_noabi::model::delete_one::collation | ( | bsoncxx::v_noabi::document::view_or_value | collation | ) |
Sets the collation for this delete operation.
collation | The new collation. |
bsoncxx::v_noabi::document::view_or_value const & mongocxx::v_noabi::model::delete_one::filter | ( | ) | const |
Gets the filter on this delete operation.
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::hint > const & mongocxx::v_noabi::model::delete_one::hint | ( | ) | const |
Gets the current hint.
delete_one & mongocxx::v_noabi::model::delete_one::hint | ( | mongocxx::v_noabi::hint | index_hint | ) |
Sets the index to use for this operation.
index_hint | Object representing the index to use. |