Docs Menu
Docs Home
/
MongoDB Manual
/ /

Field Names with Periods and Dollar Signs

On this page

  • Get Started

MongoDB supports field names that are dollar ($) prefixed or that contain periods (.).

In most cases data that has been stored using field names like these is not directly accessible. You need to use helper methods like $getField, $setField, and $literal in queries that access those fields.

The field name validation rules are not the same for all types of storage operations.

For examples of how to handle field names that contain periods and dollar signs, see these pages:

Back

Distributed Queries

On this page