1MONGOC_BULK_OPERATION_UPDATE(3)    libmongoc   MONGOC_BULK_OPERATION_UPDATE(3)
2
3
4

SYNOPSIS

6          void
7          mongoc_bulk_operation_update (mongoc_bulk_operation_t *bulk,
8                                        const bson_t *selector,
9                                        const bson_t *document,
10                                        bool upsert);
11
12       This  function  queues an update as part of a bulk operation. This does
13       not execute the operation. To execute the entirety of the  bulk  opera‐
14       tion call mongoc_bulk_operation_execute().
15
16       document  MUST only contain fields whose key starts with $. See the up‐
17       date document specification for more details.
18
19       This           function           is           superseded            by
20       mongoc_bulk_operation_update_one_with_opts()                        and
21       mongoc_bulk_operation_update_many_with_opts().
22

PARAMETERS

24bulk: A mongoc_bulk_operation_t.
25
26selector: A bson_t that selects which documents to remove.
27
28document: A bson_t containing the update document.
29
30upsert: true if an upsert should be performed.
31

ERRORS

33       Errors are propagated via mongoc_bulk_operation_execute().
34
35       SEE ALSO:
36          mongoc_bulk_operation_update_one_with_opts()
37
38          mongoc_bulk_operation_update_many_with_opts()
39
40

AUTHOR

42       MongoDB, Inc
43
45       2017-present, MongoDB, Inc
46
47
48
49
501.25.1                           Nov 08, 2023  MONGOC_BULK_OPERATION_UPDATE(3)
Impressum