Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions draft/applications/create.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ MongoDB v2.2 has a 16 megabytes limit on document size.

.. include:: /includes/note-write-concerns.rst

.. include:: /includes/warning-document-field-name-restrictions.rst

.. _crud-create-insert:

Insert
Expand Down
2 changes: 2 additions & 0 deletions draft/core/documents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ documents may contain ``field:value`` pairs where the value can be
another document, an array, an array of documents as well as the basic
types such as ``Double``, ``String``, or ``Date``.

.. include:: /includes/warning-document-field-name-restrictions.rst

Consider the following examples of MongoDB documents:

- The following document specifies a record in a collection. Documents
Expand Down
8 changes: 8 additions & 0 deletions source/includes/warning-document-field-name-restrictions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. warning::

:doc:`core/documents` stored as records in collections have
the following restrictions on the field names:

- The field names must **not** start with the ``$`` character.

- The field names must **not** contain the ``.`` character.