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

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: