1MONGOC_BULK_OPERATION_UPDATE_MANYM_OWNIlGTiOHbC_m_OoBPnUTgLSoK(c_3O)PERATION_UPDATE_MANY_WITH_OPTS(3)
2
3
4

NAME

6       mongoc_bulk_operation_update_many_with_opts     -    mongoc_bulk_opera‐
7       tion_update_many_with_opts()
8

SYNOPSIS

10          bool
11          mongoc_bulk_operation_update_many_with_opts (mongoc_bulk_operation_t *bulk,
12                                                       const bson_t *selector,
13                                                       const bson_t *document,
14                                                       const bson_t *opts,
15                                                       bson_error_t *error); /* OUT */
16
17       This function queues an update as part of a bulk operation.  This  does
18       not  execute  the operation. To execute the entirety of the bulk opera‐
19       tion call mongoc_bulk_operation_execute().
20
21       WARNING:
22          document MUST only contain fields whose key starts with $.  See  the
23          update document specification for more details.
24

PARAMETERS

26       · bulk: A mongoc_bulk_operation_t.
27
28       · selector: A bson_t that selects which documents to remove.
29
30       · document: A bson_t containing the update document.
31
32       · error: A bson_error_t any errors that may have occurred.
33
34       opts may be NULL or a BSON document with additional command options:
35
36       · validate:     Construct     a     bitwise-or     of    all    desired
37         bson_validate_flags_t. Set to false to skip client-side validation of
38         the provided BSON documents.
39
40       · collation:  Configure  textual  comparisons.  See  Setting  Collation
41         Order, and the MongoDB Manual entry on Collation. Collation  requires
42         MongoDB 3.2 or later, otherwise an error is returned.
43
44       · hint: A document or string that specifies the index to use to support
45         the query predicate.
46
47       · upsert: If true, insert a document if none match selector.
48
49       · arrayFilters: An array of filters specifying to which array  elements
50         an update should apply.
51

SEE ALSO

53       mongoc_bulk_operation_update_one_with_opts()
54

ERRORS

56       Operation  errors  are  propagated via mongoc_bulk_operation_execute(),
57       while argument validation errors are reported by the error argument.
58

RETURNS

60       Returns true on success, and false if there  is  a  server  or  network
61       error or if passed invalid arguments.
62

AUTHOR

64       MongoDB, Inc
65
67       2017-present, MongoDB, Inc
68
69
70
71
721.17.4                          MFOeNbGO0C4_,BU2L0K2_1OPERATION_UPDATE_MANY_WITH_OPTS(3)
Impressum