1MONGOC_GRIDFS_FIND(3) libmongoc MONGOC_GRIDFS_FIND(3)
2
3
4
6 Deprecated since version 1.5.0: This function is deprecated, use
7 mongoc_gridfs_find_with_opts() instead.
8
9
11 mongoc_gridfs_file_list_t *
12 mongoc_gridfs_find (mongoc_gridfs_t *gridfs,
13 const bson_t *query) BSON_GNUC_WARN_UNUSED_RESULT
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.25.1 Nov 08, 2023 MONGOC_GRIDFS_FIND(3)