Skip to main content

handle_query

Function handle_query 

Source
pub async fn handle_query<O: QueryObject, B: JmapBackend>(
    backend: &B,
    caller: &B::CallerCtx,
    args: Value,
) -> Result<(Value, Vec<Invocation>), JmapError>
Expand description

Generic */query handler (RFC 8620 §5.5).

Parses filter and sort from args as O::Filter and O::Comparator, then delegates to JmapBackend::query_objects.