1MONGOC_COLLECTION_FIND_INDEXES(3) libmongoc MONGOC_COLLECTION_FIND_INDEXES(3)
2
3
4
6 mongoc_collection_find_indexes - mongoc_collection_find_indexes()
7
9 mongoc_cursor_t *
10 mongoc_collection_find_indexes (mongoc_collection_t *collection,
11 bson_error_t *error);
12
14 This function is deprecated and should not be used in new code.
15
16 Please use mongoc_collection_find_indexes_with_opts() instead.
17
18 Fetches a cursor containing documents, each corresponding to an index
19 on this collection.
20
21 This function is considered a retryable read operation. Upon a tran‐
22 sient error (a network error, errors due to replica set failover, etc.)
23 the operation is safely retried once. If retryreads is false in the
24 URI (see mongoc_uri_t) the retry behavior does not apply.
25
27 · collection: A mongoc_collection_t.
28
29 · error: An optional location for a bson_error_t or NULL.
30
32 Errors are propagated via the error parameter.
33
35 A cursor where each result corresponds to the server's representation
36 of an index on this collection. If the collection does not exist on the
37 server, the cursor will be empty.
38
40 MongoDB, Inc
41
43 2017-present, MongoDB, Inc
44
45
46
47
481.16.2 Feb 25, 2020MONGOC_COLLECTION_FIND_INDEXES(3)