Skip to main content

Module query_parse

Module query_parse 

Source
Expand description

Parsing the where parameter into constraints.

A where value is {"field": <literal>} for equality, or {"field": {"$op": <value>}} for everything else. An operator document may carry several operators, which is how a range is expressed.

Anything unsupported is an error. Silently ignoring an operator returns more rows than the caller asked for, which is an authorization failure rather than a missing feature, and it is the failure mode this rule exists to prevent.

Functionsยง

parse_where
Parse a decoded where object into constraints.