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