MONGOC_CLIENT_SET_SERVER_API(3) | libmongoc | MONGOC_CLIENT_SET_SERVER_API(3) |
bool mongoc_client_set_server_api (mongoc_client_t *client, const mongoc_server_api_t *api, bson_error_t *error);
Set the API version to use for client. Once the API version is set on a client, it may not be changed to a new value. Attempting to do so will cause this method to fail and set error.
True if the version was successfully set, false if not. On failure, error will be set.
MongoDB, Inc
2017-present, MongoDB, Inc
March 31, 2024 | 1.26.0 |