DOKK / manpages / debian 10 / libmongoc-doc / mongoc_collection_create_index.3.en
MONGOC_COLLECTION_CREATE_INDEX(3) MongoDB C Driver MONGOC_COLLECTION_CREATE_INDEX(3)

mongoc_collection_create_index - mongoc_collection_create_index()

bool
mongoc_collection_create_index (mongoc_collection_t *collection,

const bson_t *keys,
const mongoc_index_opt_t *opt,
bson_error_t *error);


This function is deprecated and should not be used in new code. See create-indexes.

  • 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.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0