mongoc_gridfs_find(3)

mongoc_gridfs_find3

Usage

mongoc_gridfs_file_list_t *
mongoc_gridfs_find (mongoc_gridfs_t *gridfs,
                    const bson_t *query);

WARNING:

Deprecated since version 1.5.0: This function is deprecated, use mongoc_gridfs_find_with_opts() instead.

Parameters

•

gridfs: A mongoc_gridfs_t.

•

query: A bson_t.

Overview

Finds all gridfs files matching query. You can iterate the matched gridfs files with the resulting file list.

This function is considered a retryable read operation. Upon a transient error (a network error, errors due to replica set failover, etc.) the operation is safely retried once. If retryreads is false in the URI (see mongoc_uri_t) the retry behavior does not apply.

Returns

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

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.