MONGOC_COLLECTION_CREATE_INDEX(3)

NAME
mongoc_collection_create_index - 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

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

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.

AUTHOR
MongoDB, Inc

COPYRIGHT
2017, MongoDB, Inc