Macro avocado::filter_and [−][src]
macro_rules! filter_and { ($($query:expr,)*) => { ... }; ($($query:expr),*) => { ... }; }
Constructs an $and
query. Similar to plain filter!
, but
takes a list of subqueries and wraps them in a document with
the key $and
, because such a query can only appear at the
top level, and not as a field specifier.
Example:
let between_10_and_20_inclusive = filter_and! { filter!{ foo: gte(10) }, filter!{ foo: lte(20) }, };