Skip to content

DOCS-9647: GridFS on arbitrary fields in the files collection #2934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions source/core/gridfs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ The ``files`` Collection
~~~~~~~~~~~~~~~~~~~~~~~~

Each document in the ``files`` collection represents a file in
:term:`GridFS`. Consider a document in the ``files`` collection, which
has the following form:
:term:`GridFS`.

.. code-block:: javascript

Expand All @@ -180,7 +179,7 @@ has the following form:
"filename" : <string>,
"contentType" : <string>,
"aliases" : <string array>,
"metadata" : <dataObject>,
"metadata" : <any>,
}

Documents in the ``files`` collection contain some or all of the
Expand Down Expand Up @@ -230,9 +229,10 @@ following fields:

.. data:: files.metadata

Optional. Any additional information you want to store.

Applications may create additional arbitrary fields.
Optional. The metadata field may be of any data type and can hold
any additional information you want to store. If you wish to add
additional arbitrary fields to documents in the ``files``
collection, add them to an object in the metadata field.

.. index:: GridFS; index; indexes
.. _gridfs-indexes:
Expand Down