Scroll to navigation

MONGOC_GRIDFS_FILE_GET_METADATA(3) libmongoc MONGOC_GRIDFS_FILE_GET_METADATA(3)

SYNOPSIS

const bson_t *
mongoc_gridfs_file_get_metadata (mongoc_gridfs_file_t *file);


PARAMETERS

file: A mongoc_gridfs_file_t <>.

DESCRIPTION

Fetches a bson document containing the metadata for the gridfs file.

RETURNS

Returns a bson_t <https://www.mongoc.org/libbson/current/bson_t.html> that should not be modified or freed.

Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

December 11, 2025 2.2.1