1MONGOC_UPDATE_FLAGS_T(3)           libmongoc          MONGOC_UPDATE_FLAGS_T(3)
2
3
4
5Flags for update operations
6

SYNOPSIS

8          typedef enum {
9             MONGOC_UPDATE_NONE = 0,
10             MONGOC_UPDATE_UPSERT = 1 << 0,
11             MONGOC_UPDATE_MULTI_UPDATE = 1 << 1,
12          } mongoc_update_flags_t;
13
14          #define MONGOC_UPDATE_NO_VALIDATE (1U << 31)
15

DESCRIPTION

17       These  flags  correspond to the MongoDB wire protocol. They may be bit‐
18       wise or'd together. The allow for modifying the way an update  is  per‐
19       formed in the MongoDB server.
20

FLAG VALUES

22              ┌───────────────────────────┬────────────────────────────┐
23              │MONGOC_UPDATE_NONE         │ No update flags set.       │
24              ├───────────────────────────┼────────────────────────────┤
25              │MONGOC_UPDATE_UPSERT       │ If  an  upsert  should  be │
26              │                           │ performed.                 │
27              ├───────────────────────────┼────────────────────────────┤
28              │MONGOC_UPDATE_MULTI_UPDATE │ If  more  than  a   single │
29              │                           │ matching  document  should │
30              │                           │ be  updated.  By   default │
31              │                           │ only the first document is │
32              │                           │ updated.                   │
33              ├───────────────────────────┼────────────────────────────┤
34              │MONGOC_UPDATE_NO_VALIDATE  │ Do not perform client side │
35              │                           │ BSON validations when per‐ │
36              │                           │ forming an update. This is │
37              │                           │ useful if you already know │
38              │                           │ your  BSON  documents  are │
39              │                           │ valid.                     │
40              └───────────────────────────┴────────────────────────────┘
41

AUTHOR

43       MongoDB, Inc
44
46       2017-present, MongoDB, Inc
47
48
49
50
511.25.1                           Nov 08, 2023         MONGOC_UPDATE_FLAGS_T(3)
Impressum