Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 455 Bytes

fact-document-field-name-restrictions.rst

File metadata and controls

12 lines (8 loc) · 455 Bytes

:doc:`Documents </core/document>` have the following restrictions on field names:

  • The field name _id is reserved for use as a primary key; its value must be unique in the collection, is immutable, and may be of any type other than an array.
  • The field names cannot start with the dollar sign ($) character.
  • The field names cannot contain the dot (.) character.
  • The field names cannot contain the null character.