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() in‐
10 stead.
11
13 mongoc_gridfs_file_list_t *
14 mongoc_gridfs_find (mongoc_gridfs_t *gridfs,
15 const bson_t *query) BSON_GNUC_WARN_UNUSED_RESULT
16 BSON_GNUC_DEPRECATED_FOR (mongoc_gridfs_find_with_opts);
17
19 • gridfs: A mongoc_gridfs_t.
20
21 • query: A bson_t.
22
24 Finds all gridfs files matching query. You can iterate the matched
25 gridfs files with the resulting file list.
26
27 This function is considered a retryable read operation. Upon a tran‐
28 sient error (a network error, errors due to replica set failover, etc.)
29 the operation is safely retried once. If retryreads is false in the
30 URI (see mongoc_uri_t) the retry behavior does not apply.
31
33 A newly allocated mongoc_gridfs_file_list_t that should be freed with
34 mongoc_gridfs_file_list_destroy() when no longer in use.
35
37 MongoDB, Inc
38
40 2017-present, MongoDB, Inc
41
42
43
44
451.23.1 Oct 20, 2022 MONGOC_GRIDFS_FIND(3)