1MONGOC_WRITE_CONCERN_APPEND(3) libmongoc MONGOC_WRITE_CONCERN_APPEND(3)
2
3
4
6 mongoc_write_concern_append - mongoc_write_concern_append()
7
9 bool
10 mongoc_write_concern_append (mongoc_write_concern_t *write_concern,
11 bson_t *command);
12
14 • write_concern: A pointer to a mongoc_write_concern_t.
15
16 • command: A pointer to a bson_t.
17
19 This function appends a write concern to command options. It is useful
20 for appending a write concern to command options before passing them to
21 mongoc_client_write_command_with_opts() or a related function that
22 takes an options document.
23
25 Returns true on success. If any arguments are invalid, returns false
26 and logs an error.
27
29 See the example code for mongoc_client_write_command_with_opts().
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.24.3 Aug 17, 2023 MONGOC_WRITE_CONCERN_APPEND(3)