-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
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.
- related to
-
RUBY-2528 Permit inserting dollar-prefixed or dotted keys
- Closed