1MONGOC_BULK_OPERATION_UPDATE(3)MongoDB C DriverMONGOC_BULK_OPERATION_UPDATE(3)
2
3
4
6 mongoc_bulk_operation_update - mongoc_bulk_operation_update()
7
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
20 update document specification for more details.
21
22 This function is superseded by mongoc_bulk_opera‐
23 tion_update_one_with_opts() and mongoc_bulk_opera‐
24 tion_update_many_with_opts().
25
27 · bulk: A mongoc_bulk_operation_t.
28
29 · selector: A bson_t that selects which documents to remove.
30
31 · document: A bson_t containing the update document.
32
33 · upsert: true if an upsert should be performed.
34
36 mongoc_bulk_operation_update_one_with_opts()
37
38 mongoc_bulk_operation_update_many_with_opts()
39
41 Errors are propagated via mongoc_bulk_operation_execute().
42
44 MongoDB, Inc
45
47 2017-present, MongoDB, Inc
48
49
50
51
521.14.0 Feb 22, 2019 MONGOC_BULK_OPERATION_UPDATE(3)