Provided by: libmongoc-doc_1.30.2-1_all 

WARNING:
Deprecated since version 1.8.0: See Manage Collection Indexes for alternatives.
SYNOPSIS
bool mongoc_collection_ensure_index (mongoc_collection_t *collection, const bson_t *keys, const mongoc_index_opt_t *opt, bson_error_t *error);
PARAMETERS
• collection: A mongoc_collection_t. • keys: A bson_t. • opt: A mongoc_index_opt_t. • error: An optional location for a bson_error_t or NULL.
ERRORS
Errors are propagated via the error parameter.
AUTHOR
MongoDB, Inc
COPYRIGHT
2009-present, MongoDB, Inc. 1.30.2 Mar 05, 2025 MONGOC_COLLECTION_ENSURE_INDEX(3)