1MONGOC_CLIENT_SET_SERVER_API(3)    libmongoc   MONGOC_CLIENT_SET_SERVER_API(3)
2
3
4

SYNOPSIS

6          bool
7          mongoc_client_set_server_api (mongoc_client_t *client,
8                                        const mongoc_server_api_t *api,
9                                        bson_error_t *error);
10
11       Set the API version to use for client. Once the API version is set on a
12       client, it may not be changed to a new value. Attempting to do so  will
13       cause this method to fail and set error.
14

PARAMETERS

16client: A mongoc_client_t.
17
18api: A mongoc_server_api_t.
19
20error: A bson_error_t.
21

RETURNS

23       True if the version was successfully set, false if not. On failure, er‐
24       ror will be set.
25

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.25.1                           Nov 08, 2023  MONGOC_CLIENT_SET_SERVER_API(3)
Impressum