#include <mongocxx/v_noabi/mongocxx/options/insert.hpp>
◆ bypass_document_validation() [1/2]
Gets the current value of the bypass_document_validation option.
- Returns
- The optional value of the bypass_document_validation option.
◆ bypass_document_validation() [2/2]
insert & mongocxx::v_noabi::options::insert::bypass_document_validation |
( |
bool | bypass_document_validation | ) |
|
Sets the bypass_document_validation option. If true, allows the write to opt-out of document level validation.
- Note
- On servers >= 3.2, the server applies validation by default. On servers < 3.2, this option is ignored.
- Parameters
-
bypass_document_validation | Whether or not to bypass document validation |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ comment() [1/2]
The current comment for this operation.
- Returns
- The current comment.
- See also
-
◆ comment() [2/2]
Sets the comment for this operation.
- Parameters
-
- See also
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ ordered() [1/2]
The current ordered value for this operation.
- Returns
- The current ordered value.
- See also
-
◆ ordered() [2/2]
insert & mongocxx::v_noabi::options::insert::ordered |
( |
bool | ordered | ) |
|
- Note
- : This applies only to insert_many and is ignored for insert_one.
If true, when an insert fails, return without performing the remaining writes. If false, when a write fails, continue with the remaining writes, if any. Inserts can be performed in any order if this is false. Defaults to true.
- Parameters
-
ordered | Whether or not the insert_many will be ordered. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
◆ write_concern() [1/2]
◆ write_concern() [2/2]
Sets the write_concern for this operation.
- Parameters
-
- See also
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
The documentation for this class was generated from the following file: