1MONGOC_CLIENT_SET_SERVER_API(3) libmongoc MONGOC_CLIENT_SET_SERVER_API(3)
2
3
4
6 mongoc_client_set_server_api - mongoc_client_set_server_api()
7
9 bool
10 mongoc_client_set_server_api (mongoc_client_t *client,
11 const mongoc_server_api_t *api,
12 bson_error_t *error);
13
14 Set the API version to use for client. Once the API version is set on a
15 client, it may not be changed to a new value. Attempting to do so will
16 cause this method to fail and set error.
17
19 • client: A mongoc_client_t.
20
21 • api: A mongoc_server_api_t.
22
23 • error: A bson_error_t.
24
26 True if the version was successfully set, false if not. On failure, er‐
27 ror will be set.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.21.1 Mar 02, 2022 MONGOC_CLIENT_SET_SERVER_API(3)