1MONGOC_GRIDFS_BUCKET_FIND(3)   MongoDB C Driver   MONGOC_GRIDFS_BUCKET_FIND(3)
2
3
4

NAME

6       mongoc_gridfs_bucket_find - mongoc_gridfs_bucket_find()
7

SYNOPSIS

9          mongoc_cursor_t *
10          mongoc_gridfs_bucket_find (mongoc_gridfs_bucket_t *bucket,
11                                     const bson_t *filter,
12                                     const bson_t *opts);
13

PARAMETERS

15       · bucket: A mongoc_gridfs_bucket_t.
16
17       · filter: A bson_t containing the query to execute.
18
19       · opts:  A  bson_t  for  query  options, supporting all options in mon‐
20         goc_collection_find_with_opts() excluding sessionId.
21

DESCRIPTION

23       Finds file documents from the bucket's files collection.
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

RETURNS

31       A  newly  allocated mongoc_cursor_t that must be freed with mongoc_cur‐
32       sor_destroy().
33

AUTHOR

35       MongoDB, Inc
36
38       2017-present, MongoDB, Inc
39
40
41
42
431.15.2                           Nov 06, 2019     MONGOC_GRIDFS_BUCKET_FIND(3)
Impressum