#include <mongocxx/v1/find_one_and_update_options.hpp>
Options for a "findOneAndUpdate" operation.
Supported fields include:
Public Member Functions | |
| find_one_and_update_options () | |
| Default initialization. | |
| find_one_and_update_options (find_one_and_update_options &&other) noexcept | |
| Move constructor. | |
| find_one_and_update_options (find_one_and_update_options const &other) | |
| Copy construction. | |
| ~find_one_and_update_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::array::view > | array_filters () const |
| Return the current "arrayFilters" field. | |
| find_one_and_update_options & | array_filters (bsoncxx::v1::array::value array_filters) |
| Set the "arrayFilters" field. | |
| bsoncxx::v1::stdx::optional< bool > | bypass_document_validation () const |
| Return the current "bypassDocumentValidation" field. | |
| find_one_and_update_options & | bypass_document_validation (bool bypass_document_validation) |
| Set the "bypassDocumentValidation" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| find_one_and_update_options & | collation (bsoncxx::v1::document::value collation) |
| Set the "collation" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > const | comment () const |
| Return the current "comment" field. | |
| find_one_and_update_options & | comment (bsoncxx::v1::types::value comment) |
| Set the "comment" field. | |
| bsoncxx::v1::stdx::optional< v1::hint > | hint () const |
| Return the current "hint" field. | |
| find_one_and_update_options & | hint (v1::hint index_hint) |
| Set the "hint" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > const | let () const |
| Return the current "let" field. | |
| find_one_and_update_options & | let (bsoncxx::v1::document::value let) |
| Set the "let" field. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | max_time () const |
| Return the current "maxTimeMS" field. | |
| find_one_and_update_options & | max_time (std::chrono::milliseconds max_time) |
| Set the "maxTimeMS" field. | |
| find_one_and_update_options & | operator= (find_one_and_update_options &&other) noexcept |
| Move assignment. | |
| find_one_and_update_options & | operator= (find_one_and_update_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | projection () const |
| Return the current "projection" field. | |
| find_one_and_update_options & | projection (bsoncxx::v1::document::value projection) |
| Set the "projection" field. | |
| bsoncxx::v1::stdx::optional< v1::return_document > | return_document () const |
| Return the current "returnDocument" field. | |
| find_one_and_update_options & | return_document (v1::return_document return_document) |
| Set the "returnDocument" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | sort () const |
| Return the current "sort" field. | |
| find_one_and_update_options & | sort (bsoncxx::v1::document::value ordering) |
| Set the "sort" field. | |
| bsoncxx::v1::stdx::optional< bool > | upsert () const |
| Return the current "upsert" field. | |
| find_one_and_update_options & | upsert (bool upsert) |
| Set the "upsert" field. | |
| bsoncxx::v1::stdx::optional< v1::write_concern > | write_concern () const |
| Return the current "writeConcern" field. | |
| find_one_and_update_options & | write_concern (v1::write_concern write_concern) |
| Set the "writeConcern" field. | |
| mongocxx::v1::find_one_and_update_options::~find_one_and_update_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::find_one_and_update_options::find_one_and_update_options | ( | find_one_and_update_options const & | other | ) |
Copy construction.
| mongocxx::v1::find_one_and_update_options::find_one_and_update_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::array::view > mongocxx::v1::find_one_and_update_options::array_filters | ( | ) | const |
Return the current "arrayFilters" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::array_filters | ( | bsoncxx::v1::array::value | array_filters | ) |
Set the "arrayFilters" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::find_one_and_update_options::bypass_document_validation | ( | ) | const |
Return the current "bypassDocumentValidation" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::bypass_document_validation | ( | bool | bypass_document_validation | ) |
Set the "bypassDocumentValidation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_one_and_update_options::collation | ( | ) | const |
Return the current "collation" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::collation | ( | bsoncxx::v1::document::value | collation | ) |
Set the "collation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > const mongocxx::v1::find_one_and_update_options::comment | ( | ) | const |
Return the current "comment" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::comment | ( | bsoncxx::v1::types::value | comment | ) |
Set the "comment" field.
| bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::find_one_and_update_options::hint | ( | ) | const |
Return the current "hint" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::hint | ( | v1::hint | index_hint | ) |
Set the "hint" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > const mongocxx::v1::find_one_and_update_options::let | ( | ) | const |
Return the current "let" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::let | ( | bsoncxx::v1::document::value | let | ) |
Set the "let" field.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::find_one_and_update_options::max_time | ( | ) | const |
Return the current "maxTimeMS" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::max_time | ( | std::chrono::milliseconds | max_time | ) |
Set the "maxTimeMS" field.
|
noexcept |
Move assignment.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::operator= | ( | find_one_and_update_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_one_and_update_options::projection | ( | ) | const |
Return the current "projection" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::projection | ( | bsoncxx::v1::document::value | projection | ) |
Set the "projection" field.
| bsoncxx::v1::stdx::optional< v1::return_document > mongocxx::v1::find_one_and_update_options::return_document | ( | ) | const |
Return the current "returnDocument" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::return_document | ( | v1::return_document | return_document | ) |
Set the "returnDocument" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_one_and_update_options::sort | ( | ) | const |
Return the current "sort" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::sort | ( | bsoncxx::v1::document::value | ordering | ) |
Set the "sort" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::find_one_and_update_options::upsert | ( | ) | const |
Return the current "upsert" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::upsert | ( | bool | upsert | ) |
Set the "upsert" field.
| bsoncxx::v1::stdx::optional< v1::write_concern > mongocxx::v1::find_one_and_update_options::write_concern | ( | ) | const |
Return the current "writeConcern" field.
| find_one_and_update_options & mongocxx::v1::find_one_and_update_options::write_concern | ( | v1::write_concern | write_concern | ) |
Set the "writeConcern" field.