1MONGOC_BULK_OPERATION_REPLACE_ONMEoM_nOWgNIoGTDOHBC__OCBPUTDLSrK(i_3vO)ePrERATION_REPLACE_ONE_WITH_OPTS(3)
2
3
4
6 mongoc_bulk_operation_replace_one_with_opts - mongoc_bulk_opera‐
7 tion_replace_one_with_opts()
8
10 bool
11 mongoc_bulk_operation_replace_one_with_opts (mongoc_bulk_operation_t *bulk,
12 const bson_t *selector,
13 const bson_t *document,
14 const bson_t *opts,
15 bson_error_t *error); /* OUT */
16
17 Replace a single document as part of a bulk operation. This only queues
18 the operation. To execute it, call mongoc_bulk_operation_execute().
19
21 · bulk: A mongoc_bulk_operation_t.
22
23 · selector: A bson_t that selects which document to remove.
24
25 · document: A bson_t containing the replacement document.
26
27 · error: A bson_error_t any errors that may have occurred.
28
29 opts may be NULL or a BSON document with additional command options:
30
31 · validate: Construct a bitwise-or of all desired
32 bson_validate_flags_t. Set to false to skip client-side validation of
33 the provided BSON documents.
34
35 · collation: Configure textual comparisons. See Setting Collation
36 Order, and the MongoDB Manual entry on Collation. Collation requires
37 MongoDB 3.2 or later, otherwise an error is returned.
38
39 · upsert: If true, insert a document if none match selector.
40
41 WARNING:
42 document may not contain fields with keys containing . or $.
43
45 mongoc_bulk_operation_remove_many_with_opts()
46
47 mongoc_bulk_operation_insert()
48
50 Operation errors are propagated via mongoc_bulk_operation_execute(),
51 while argument validation errors are reported by the error argument.
52
54 Returns true on success, and false if passed invalid arguments.
55
57 MongoDB, Inc
58
60 2017-present, MongoDB, Inc
61
62
63
64
651.13.1 MJOaNnGO2C4_,BU2L0K1_9OPERATION_REPLACE_ONE_WITH_OPTS(3)