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

NAME

6       mongoc_bulk_operation_update - mongoc_bulk_operation_update()
7

SYNOPSIS

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

PARAMETERS

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

SEE ALSO

35       mongoc_bulk_operation_update_one_with_opts()
36
37       mongoc_bulk_operation_update_many_with_opts()
38

ERRORS

40       Errors are propagated via mongoc_bulk_operation_execute().
41

AUTHOR

43       MongoDB, Inc
44
46       2017-present, MongoDB, Inc
47
48
49
50
511.17.6                           Jun 03, 2021  MONGOC_BULK_OPERATION_UPDATE(3)
Impressum