Skip to main content

matches_properties

Function matches_properties 

Source
pub fn matches_properties(
    expr: &Expr,
    obj: &Map<String, Value>,
) -> Result<bool, QueryError>
Expand description

Evaluate a parse_property_predicate expression on one object. $type tests the stored JSON shape (there is no declared type to consult).

ยงErrors

Returns QueryError when evaluation fails.