Skip to main content

where

Macro where 

Source
where!() { /* proc-macro */ }
Expand description

prax::r#where! — schema-aware shape macro returning a <Model>WhereInput value. Composes with the read macros via ..spread:

let active = prax::r#where!(User, { active: true });
let _ = prax::find_many!(client.user, {
    ..active,
    email: { contains: "@x.com" },
});

Exported as r#where because where is a Rust keyword and the raw-identifier prefix is required at the call site whenever the macro is reached through a path (prax::r#where!(...)).