#include <mongocxx/v_noabi/mongocxx/options/find_one_and_update.hpp>
Used by mongocxx::v_noabi::collection.
Public Member Functions | |
| find_one_and_update ()=default | |
| Default initialization. | |
| find_one_and_update (v1::find_one_and_update_options opts) | |
| Construct with the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::array::view_or_value > const & | array_filters () const |
| Get array filters for this operation. | |
| find_one_and_update & | array_filters (bsoncxx::v_noabi::array::view_or_value array_filters) |
| Set array filters for this operation. | |
| bsoncxx::v_noabi::stdx::optional< bool > const & | bypass_document_validation () const |
| The current setting for bypassing document validation. | |
| find_one_and_update & | bypass_document_validation (bool bypass_document_validation) |
| Whether or not to bypass document validation for this operation. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | collation () const |
| Retrieves the current collation for this operation. | |
| find_one_and_update & | collation (bsoncxx::v_noabi::document::view_or_value collation) |
| Sets the collation for this operation. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > const | comment () const |
| Gets the current value of the comment option. | |
| find_one_and_update & | comment (bsoncxx::v_noabi::types::bson_value::view_or_value comment) |
| Set the value of the comment option. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::hint > const & | hint () const |
| Gets the current hint. | |
| find_one_and_update & | hint (v_noabi::hint index_hint) |
| Sets the index to use for this operation. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const | let () const |
| Gets the current value of the let option. | |
| find_one_and_update & | let (bsoncxx::v_noabi::document::view_or_value let) |
| Set the value of the let option. | |
| bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > const & | max_time () const |
| The current max_time setting. | |
| find_one_and_update & | max_time (std::chrono::milliseconds max_time) |
| Sets the maximum amount of time for this operation to run (server-side) in milliseconds. | |
| operator v1::find_one_and_update_options () const | |
| Convert to the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | projection () const |
| Gets the current projection for this operation. | |
| find_one_and_update & | projection (bsoncxx::v_noabi::document::view_or_value projection) |
| Sets a projection, which limits the fields to return. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::options::return_document > const & | return_document () const |
| Which version of the updated document to return. | |
| find_one_and_update & | return_document (return_document return_document) |
| Set the desired version of the updated document to return, either the original document, or the updated. By default, the original document is returned. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | sort () const |
| Gets the current sort ordering. | |
| find_one_and_update & | sort (bsoncxx::v_noabi::document::view_or_value ordering) |
| Sets the order by which to search the collection for a matching document. | |
| bsoncxx::v_noabi::stdx::optional< bool > const & | upsert () const |
| Gets the current upsert setting. | |
| find_one_and_update & | upsert (bool upsert) |
Sets the upsert flag on the operation. When true, the operation creates a new document if no document matches the filter. When false, this operation will do nothing if there are no matching documents. The server-side default is false. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > const & | write_concern () const |
| Gets the current write concern. | |
| find_one_and_update & | write_concern (v_noabi::write_concern write_concern) |
| Sets the write concern for this operation. | |
|
default |
Default initialization.
| mongocxx::v_noabi::options::find_one_and_update::find_one_and_update | ( | v1::find_one_and_update_options | opts | ) |
Construct with the mongocxx::v1 equivalent.
|
inline |
Get array filters for this operation.
|
inline |
Set array filters for this operation.
| array_filters | Array representing filters determining which array elements to modify. |
|
inline |
The current setting for bypassing document validation.
|
inline |
Whether or not to bypass document validation for this operation.
| bypass_document_validation | Whether or not to bypass document validation. |
|
inline |
Retrieves the current collation for this operation.
|
inline |
Sets the collation for this operation.
| collation | The new collation. |
|
inline |
Gets the current value of the comment option.
|
inline |
Set the value of the comment option.
| comment | The new comment option. |
|
inline |
Gets the current hint.
|
inline |
Sets the index to use for this operation.
| index_hint | Object representing the index to use. |
|
inline |
Gets the current value of the let option.
|
inline |
Set the value of the let option.
| let | The new let option. |
|
inline |
The current max_time setting.
|
inline |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
| max_time | The max amount of time (in milliseconds). |
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.
|
inline |
Gets the current projection for this operation.
|
inline |
Sets a projection, which limits the fields to return.
| projection | The projection document. |
|
inline |
Which version of the updated document to return.
|
inline |
Set the desired version of the updated document to return, either the original document, or the updated. By default, the original document is returned.
| return_document | Version of document to return, either original or updated. |
|
inline |
Gets the current sort ordering.
|
inline |
Sets the order by which to search the collection for a matching document.
| ordering | Document describing the order of the documents to be returned. |
|
inline |
Gets the current upsert setting.
|
inline |
Sets the upsert flag on the operation. When true, the operation creates a new document if no document matches the filter. When false, this operation will do nothing if there are no matching documents. The server-side default is false.
| upsert | Whether or not to perform an upsert. |
|
inline |
Gets the current write concern.
|
inline |
Sets the write concern for this operation.
| write_concern | Object representing the write concern. |