module Mongoid::Matcher::Exists
def matches?(exists, value, condition)
- Api: - private
Returns:
-
(true | false)
- Whether the existence condition is met.
Parameters:
-
condition
(true | false
) -- The $exists condition predicate. -
value
(Object
) -- Not used. -
exists
(true | false
) -- Whether the value exists.
def matches?(exists, value, condition) ::InvalidQuery, "$exists argument cannot be a Range: #{Errors::InvalidQuery.truncate_expr(condition)}" dition || false)