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

SYNOPSIS

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

PARAMETERS

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

ERRORS

49       Operation errors are  propagated  via  mongoc_bulk_operation_execute(),
50       while argument validation errors are reported by the error argument.
51

RETURNS

53       Returns  true on success, and false if there is a server or network er‐
54       ror or if passed invalid arguments.
55
56       SEE ALSO:
57          mongoc_bulk_operation_update_one_with_opts()
58
59

AUTHOR

61       MongoDB, Inc
62
64       2017-present, MongoDB, Inc
65
66
67
68
691.25.1                          MNOoNvGO0C8_,BU2L0K2_3OPERATION_UPDATE_MANY_WITH_OPTS(3)
Impressum