Module: Mongoid::Matcher::ElemMatchExpression Private
- Defined in:
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
$elemMatch argument can be a top-level expression and some specific operator combinations like $not with a regular expression.
Class Method Summary collapse
Class Method Details
.matches?(document, expr) ⇒
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 14 15 16 17
# File 'build/mongoid-7.3/lib/mongoid/matcher/elem_match_expression.rb', line 9 module_function def matches?(document, expr) .(document, expr) rescue :::: begin .(true, document, expr) rescue :::: => exc raise ::::.(exc.operator) end end