1MONGOC_GRIDFS_FIND(3)              libmongoc             MONGOC_GRIDFS_FIND(3)
2
3
4

NAME

6       mongoc_gridfs_find - mongoc_gridfs_find()
7

DEPRECATED

9       This function is deprecated, use mongoc_gridfs_find_with_opts instead.
10

SYNOPSIS

12          mongoc_gridfs_file_list_t *
13          mongoc_gridfs_find (mongoc_gridfs_t *gridfs,
14                              const bson_t *query) BSON_GNUC_WARN_UNUSED_RESULT
15             BSON_GNUC_DEPRECATED_FOR (mongoc_gridfs_find_with_opts);
16

PARAMETERS

18gridfs: A mongoc_gridfs_t.
19
20query: A bson_t.
21

DESCRIPTION

23       Finds  all  gridfs  files  matching  query. You can iterate the matched
24       gridfs files with the resulting file list.
25
26       This function is considered a retryable read operation.  Upon  a  tran‐
27       sient error (a network error, errors due to replica set failover, etc.)
28       the operation is safely retried once.  If retryreads is  false  in  the
29       URI (see mongoc_uri_t) the retry behavior does not apply.
30

RETURNS

32       A  newly  allocated mongoc_gridfs_file_list_t that should be freed with
33       mongoc_gridfs_file_list_destroy() when no longer in use.
34

AUTHOR

36       MongoDB, Inc
37
39       2017-present, MongoDB, Inc
40
41
42
43
441.21.1                           Mar 02, 2022            MONGOC_GRIDFS_FIND(3)
Impressum