1MONGOC_GRIDFS_BUCKET_FIND(3)       libmongoc      MONGOC_GRIDFS_BUCKET_FIND(3)
2
3
4

SYNOPSIS

6          mongoc_cursor_t *
7          mongoc_gridfs_bucket_find (mongoc_gridfs_bucket_t *bucket,
8                                     const bson_t *filter,
9                                     const bson_t *opts) BSON_GNUC_WARN_UNUSED_RESULT;
10

PARAMETERS

12bucket: A mongoc_gridfs_bucket_t.
13
14filter: A bson_t containing the query to execute.
15
16opts:   A  bson_t  for  query  options,  supporting  all  options  in
17         mongoc_collection_find_with_opts() excluding sessionId.
18

DESCRIPTION

20       Finds file documents from the bucket's files collection.
21
22       This function is considered a retryable read operation.  Upon  a  tran‐
23       sient error (a network error, errors due to replica set failover, etc.)
24       the operation is safely retried once.  If retryreads is  false  in  the
25       URI (see mongoc_uri_t) the retry behavior does not apply.
26

RETURNS

28       A   newly   allocated   mongoc_cursor_t   that   must   be  freed  with
29       mongoc_cursor_destroy().
30

AUTHOR

32       MongoDB, Inc
33
35       2017-present, MongoDB, Inc
36
37
38
39
401.25.1                           Nov 08, 2023     MONGOC_GRIDFS_BUCKET_FIND(3)
Impressum