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

NAME

6       mongoc_bulk_operation_replace_one - mongoc_bulk_operation_replace_one()
7

SYNOPSIS

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

PARAMETERS

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

ERRORS

34       Errors are propagated via mongoc_bulk_operation_execute().
35
36       SEE ALSO:
37          mongoc_bulk_operation_replace_one_with_opts()
38
39

AUTHOR

41       MongoDB, Inc
42
44       2017-present, MongoDB, Inc
45
46
47
48
491.23.1                           Oct 20, 20M2O2NGOC_BULK_OPERATION_REPLACE_ONE(3)
Impressum