Skip to content

Commit d16f221

Browse files
committed
DOCS-662 restrictions on doc field names
1 parent d4c0607 commit d16f221

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

draft/applications/create.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ MongoDB v2.2 has a 16 megabytes limit on document size.
3333

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

36+
.. include:: /includes/warning-document-field-name-restrictions.rst
37+
3638
.. _crud-create-insert:
3739

3840
Insert

draft/core/documents.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ documents may contain ``field:value`` pairs where the value can be
2929
another document, an array, an array of documents as well as the basic
3030
types such as ``Double``, ``String``, or ``Date``.
3131

32+
.. include:: /includes/warning-document-field-name-restrictions.rst
33+
3234
Consider the following examples of MongoDB documents:
3335

3436
- The following document specifies a record in a collection. Documents
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. warning::
2+
3+
:doc:`core/documents` stored as records in collections have
4+
the following restrictions on the field names:
5+
6+
- The field names must **not** start with the ``$`` character.
7+
8+
- The field names must **not** contain the ``.`` character.

0 commit comments

Comments
 (0)