1MONGOC_GRIDFS_FIND(3) libmongoc MONGOC_GRIDFS_FIND(3)
2
3
4
6 mongoc_gridfs_find - mongoc_gridfs_find()
7
9 This function is deprecated, use mongoc_gridfs_find_with_opts instead.
10
12 mongoc_gridfs_file_list_t *
13 mongoc_gridfs_find (mongoc_gridfs_t *gridfs, const bson_t *query)
14 BSON_GNUC_DEPRECATED_FOR (mongoc_gridfs_find_with_opts);
15
17 · gridfs: A mongoc_gridfs_t.
18
19 · query: A bson_t.
20
22 Finds all gridfs files matching query. You can iterate the matched
23 gridfs files with the resulting file list.
24
25 This function is considered a retryable read operation. Upon a tran‐
26 sient error (a network error, errors due to replica set failover, etc.)
27 the operation is safely retried once. If retryreads is false in the
28 URI (see mongoc_uri_t) the retry behavior does not apply.
29
31 A newly allocated mongoc_gridfs_file_list_t that should be freed with
32 mongoc_gridfs_file_list_destroy() when no longer in use.
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.17.4 Feb 04, 2021 MONGOC_GRIDFS_FIND(3)