Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5161

Documentation - Clarify the policy for working with . and $ named fields which were introduced in MongoDB 5.0

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.4.0
    • Affects Version/s: None
    • Component/s: Docs
    • Fully Compatible

      We should document the Mongoid policy for handling $ and . fields (introduced in MongoDB 5.0).

      In summary:

      • In MongoDB's interface (not specific to Mongoid) $ and . fields are special "hidden fields" that can only be accessed with special "shadow" operators.
      • Mongoid query operators / field names will behave as normal post-MongoDB 5.0
      • The field function will not allow . and $ in field names; Ruby doesn't support such method names anyway.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: