<?xml version="1.0"?>
<page xmlns="http://projectmallard.org/1.0/"
      type="topic"
      style="function"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/experimental/ui/"
      id="mongoc_gridfs_find">
  <info>
    <link type="guide" xref="mongoc_gridfs_t" group="function"/>
  </info>
  <title>mongoc_gridfs_find()</title>

  <section id="synopsis">
    <title>Synopsis</title>
    <synopsis><code mime="text/x-csrc"><![CDATA[mongoc_gridfs_file_list_t *
mongoc_gridfs_find (mongoc_gridfs_t *gridfs,
                    const bson_t    *query);]]></code></synopsis>
  </section>


  <section id="parameters">
    <title>Parameters</title>
    <table>
      <tr><td><p>gridfs</p></td><td><p>A <code xref="mongoc_gridfs_t">mongoc_gridfs_t</code>.</p></td></tr>
      <tr><td><p>query</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>.</p></td></tr>
    </table>
  </section>

  <section id="description">
    <title>Description</title>
    <p>Finds all gridfs files matching <code>query</code>. You can iterate the matched gridfs files with the resulting file list.</p>
  </section>

  <section id="return">
    <title>Returns</title>
    <p>A newly allcoated <code xref="mongoc_gridfs_file_list_t">mongoc_gridfs_file_list_t</code> that should be freed with <code xref="mongoc_gridfs_file_list_destroy">mongoc_gridfs_file_list_destroy()</code> when no longer in use.</p>
  </section>

</page>
