-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Query
-
None
PR: https://github.com/mongodb/mongoid/pull/4656
The original issue (that this PR fixes) was that nested conditionals (like :$or) inside of a :$elemMatch would raise NoMethodError: undefined method `_matches?' for
{"a"=>1, "b"=>1}:Hash since a Hash value would get evaluated internally inside the :$elemMatch execution.
- depends on
-
MONGOID-4778 Clarify _matches? behavior
- Closed
- duplicates
-
MONGOID-4791 Support logical operators under $elemMatch when embedded matching
- Closed
- links to