MongoDB C++ Driver mongocxx-3.0.3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongocxx::model::delete_one Class Reference

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.
 
const bsoncxx::document::view_or_valuefilter () const
 Gets the filter on this delete operation.
 

Detailed Description

Class representing a MongoDB delete operation that removes a single document.

Constructor & Destructor Documentation

◆ delete_one()

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.

Parameters
filterDocument representing the criteria for deletion.

Member Function Documentation

◆ filter()

const bsoncxx::document::view_or_value & mongocxx::model::delete_one::filter ( ) const

Gets the filter on this delete operation.

Returns
The filter to be used for the delete operation.

The documentation for this class was generated from the following file: