1MONGOC_BULK_OPERATION_UPDATE_ONE(3)libmongocMONGOC_BULK_OPERATION_UPDATE_ONE(3)
2
3
4
6 void
7 mongoc_bulk_operation_update_one (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. It will
13 only modify a single document on the MongoDB server. This function does
14 not execute the operation. To execute the entirety of the bulk opera‐
15 tion call mongoc_bulk_operation_execute().
16
17 This function is superseded by
18 mongoc_bulk_operation_update_one_with_opts().
19
21 • bulk: A mongoc_bulk_operation_t.
22
23 • selector: A bson_t that selects which document to remove.
24
25 • document: A bson_t containing the update document.
26
27 • upsert: true if an upsert should be performed.
28
29 WARNING:
30 document must only contain fields whose key starts with $. See the
31 update document specification for more details.
32
33 SEE ALSO:
34 mongoc_bulk_operation_update()
35
36 mongoc_bulk_operation_update_one_with_opts()
37
38
40 MongoDB, Inc
41
43 2017-present, MongoDB, Inc
44
45
46
47
481.25.1 Nov 08, 202M3ONGOC_BULK_OPERATION_UPDATE_ONE(3)