MongoDB C++ Driver
mongocxx-3.0.1
|
Class representing a MongoDB delete operation that removes a single document. More...
#include <delete_one.hpp>
Public Member Functions | |
delete_one (bsoncxx::document::view_or_value filter) | |
Constructs a delete operation that will delete the first document matching the filter. More... | |
const bsoncxx::document::view_or_value & | filter () const |
Gets the filter on this delete operation. More... | |
Class representing a MongoDB delete operation that removes a single document.
mongocxx::model::delete_one::delete_one | ( | bsoncxx::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. |
const bsoncxx::document::view_or_value& mongocxx::model::delete_one::filter | ( | ) | const |
Gets the filter on this delete operation.