Skip to main content

parse_where

Function parse_where 

Source
pub fn parse_where(obj: &Value) -> Result<Expr, QueryDocumentError>
Expand description

Parse a documented where object into a root Expr (with Related nodes for traversal blocks). Flat keys become implicit $and conjuncts.

ยงErrors

Returns QueryDocumentError::Parse when the clause shape is invalid and QueryDocumentError::Unsupported for unsupported operator placements.