1MONGOC_BULK_OPERATION_REPLACE_ONE(3)libmongoMcONGOC_BULK_OPERATION_REPLACE_ONE(3)
2
3
4

SYNOPSIS

6          void
7          mongoc_bulk_operation_replace_one (mongoc_bulk_operation_t *bulk,
8                                             const bson_t *selector,
9                                             const bson_t *document,
10                                             bool upsert);
11
12       Replace a single document as part of a bulk operation. This only queues
13       the operation. To execute it, call mongoc_bulk_operation_execute().
14
15       This           function           is           superseded            by
16       mongoc_bulk_operation_replace_one_with_opts().
17

PARAMETERS

19bulk: A mongoc_bulk_operation_t.
20
21selector: A bson_t that selects which document to remove.
22
23document: A bson_t containing the replacement document.
24
25upsert: true if this should be an upsert.
26
27       WARNING:
28          document may not contain fields with keys containing . or $.
29

ERRORS

31       Errors are propagated via mongoc_bulk_operation_execute().
32
33       SEE ALSO:
34          mongoc_bulk_operation_replace_one_with_opts()
35
36

AUTHOR

38       MongoDB, Inc
39
41       2017-present, MongoDB, Inc
42
43
44
45
461.25.1                           Nov 08, 20M2O3NGOC_BULK_OPERATION_REPLACE_ONE(3)
Impressum