1MONGOC_BULK_OPERATION_UPDATE_ONEM(o3n)goDB C DriMvOeNrGOC_BULK_OPERATION_UPDATE_ONE(3)
2
3
4

NAME

6       mongoc_bulk_operation_update_one - mongoc_bulk_operation_update_one()
7

SYNOPSIS

9          void
10          mongoc_bulk_operation_update_one (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. It will
16       only modify a single document on the MongoDB server. This function does
17       not  execute  the operation. To execute the entirety of the bulk opera‐
18       tion call mongoc_bulk_operation_execute().
19
20       This     function     is     superseded      by      mongoc_bulk_opera‐
21       tion_update_one_with_opts().
22

PARAMETERS

24       · bulk: A mongoc_bulk_operation_t.
25
26       · selector: A bson_t that selects which document to remove.
27
28       · document: A bson_t containing the update document.
29
30       · upsert: true if an upsert should be performed.
31
32       WARNING:
33          document  must  only contain fields whose key starts with $. See the
34          update document specification for more details.
35

SEE ALSO

37       mongoc_bulk_operation_update()
38
39       mongoc_bulk_operation_update_one_with_opts()
40

AUTHOR

42       MongoDB, Inc
43
45       2017-present, MongoDB, Inc
46
47
48
49
501.14.0                           Feb 22, 201M9ONGOC_BULK_OPERATION_UPDATE_ONE(3)
Impressum