MONGOC_COLLECTION_FIND_INDEXES(3) | libmongoc | MONGOC_COLLECTION_FIND_INDEXES(3) |
mongoc_collection_find_indexes - mongoc_collection_find_indexes()
mongoc_cursor_t * mongoc_collection_find_indexes (mongoc_collection_t *collection,
bson_error_t *error);
This function is deprecated and should not be used in new code.
Please use mongoc_collection_find_indexes_with_opts() instead.
Fetches a cursor containing documents, each corresponding to an index on this collection.
This function is considered a retryable read operation. Upon a transient error (a network error, errors due to replica set failover, etc.) the operation is safely retried once. If retryreads is false in the URI (see mongoc_uri_t) the retry behavior does not apply.
Errors are propagated via the error parameter.
A cursor where each result corresponds to the server's representation of an index on this collection. If the collection does not exist on the server, the cursor will be empty.
MongoDB, Inc
2017-present, MongoDB, Inc
June 4, 2021 | 1.17.6 |