Provided by: libmongoc-doc_2.2.1-1_all bug

SYNOPSIS

          #include <mongoc/mongoc.h>

          typedef struct _mongoc_gridfs_file_list_t mongoc_gridfs_file_list_t;

DESCRIPTION

       mongoc_gridfs_file_list_t  provides  a  gridfs  file  list  abstraction.  It provides iteration and basic
       marshalling on top of a regular mongoc_collection_find_with_opts() <> style  query.  In  interface,  it's
       styled after mongoc_cursor_t <>.

EXAMPLE

          mongoc_gridfs_file_list_t *list;
          mongoc_gridfs_file_t *file;

          list = mongoc_gridfs_find_with_opts (gridfs, query, NULL);

          while ((file = mongoc_gridfs_file_list_next (list))) {
             do_something (file);

             mongoc_gridfs_file_destroy (file);
          }

          mongoc_gridfs_file_list_destroy (list);

Author

       MongoDB, Inc

Copyright

       2009-present, MongoDB, Inc.

2.2.1                                             Dec 11, 2025                      MONGOC_GRIDFS_FILE_LIST_T(3)