mongoc_collection_create_index()

Synopsis

bool
mongoc_collection_create_index (mongoc_collection_t *collection,
                                const bson_t *keys,
                                const mongoc_index_opt_t *opt,
                                bson_error_t *error);

Parameters

Description

For more information, see mongoc_collection_create_index_with_opts(). This function is a thin wrapper, passing NULL in as mongoc_write_concern_t parameter. This function also creates a local bson_t to pass in as reply parameter, destroying it afterward.