1MONGOC_BULK_OPERATION_REPLACE_ONMEo(n3g)oDB C DrMiOvNeGrOC_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      mongoc_bulk_opera‐
19       tion_replace_one_with_opts().
20

PARAMETERS

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

SEE ALSO

34       mongoc_bulk_operation_replace_one_with_opts()
35

ERRORS

37       Errors are propagated via mongoc_bulk_operation_execute().
38

AUTHOR

40       MongoDB, Inc
41
43       2017-present, MongoDB, Inc
44
45
46
47
481.15.2                           Nov 06, 20M1O9NGOC_BULK_OPERATION_REPLACE_ONE(3)
Impressum