[][src]Trait avocado::dsl::ops::Query

pub trait Query<T: Doc>: Debug {
    type Output: for<'a> Deserialize<'a>;
    fn filter(&self) -> FilterDoc;

    fn options() -> FindOptions { ... }
}

A regular query (find_one() or find_many()) operation.

Associated Types

The type of the results obtained by executing the query. Often it's just the document type, T. TODO(H2CO3): make it default to T (#29661).

Required Methods

Filter for restricting returned values.

Provided Methods

Options for this query.

Implementors