[][src]Struct wundergraph::query_builder::selection::filter::Filter

pub struct Filter<F, T> { /* fields omitted */ }

Main filter struct

This struct is the main entry point to wundergraphs filter api The exact field specfic filters are given by a subtype (inner)

Methods

impl<F, T> Filter<F, T> where
    F: InnerFilter
[src]

pub fn apply_filter<'a, ST, DB>(
    self,
    q: BoxedSelectStatement<'a, ST, T, DB>
) -> BoxedSelectStatement<'a, ST, T, DB> where
    T: Table + 'a,
    DB: Backend + 'a,
    Self: BuildFilter<DB>,
    Self::Ret: AppearsOnTable<T> + QueryFragment<DB> + 'a, 
[src]

Apply the filter to a given select statement

This function will extend the where clause with the given filter expression In case there is already an existing filter the new filter will by connected connected by and

Trait Implementations

impl<F, DB, T> BuildFilter<DB> for Filter<F, T> where
    DB: Backend + 'static,
    F: InnerFilter + BuildFilter<DB> + 'static,
    T: 'static,
    F::Ret: AppearsOnTable<T>, 
[src]

type Ret = Box<dyn BoxableFilter<T, DB, SqlType = Bool>>

The return type of the constructed filter

impl<F: Debug, T: Debug> Debug for Filter<F, T>[src]

impl<F, T> FromInputValue<WundergraphScalarValue> for Filter<F, T> where
    F: InnerFilter
[src]

impl<F, T> FromLookAheadValue for Filter<F, T> where
    F: InnerFilter
[src]

impl<F, T> GraphQLType<WundergraphScalarValue> for Filter<F, T> where
    F: InnerFilter
[src]

type Context = F::Context

The expected context type for this GraphQL type Read more

type TypeInfo = NameBuilder<Self>

Type that may carry additional schema information Read more

impl<F, T> InnerFilter for Filter<F, T> where
    F: InnerFilter
[src]

type Context = F::Context

The used context type

impl<F, T> Nameable for Filter<F, T> where
    F: Nameable
[src]

impl<F, T> ToInputValue<WundergraphScalarValue> for Filter<F, T> where
    F: InnerFilter
[src]

Auto Trait Implementations

impl<F, T> RefUnwindSafe for Filter<F, T> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<F, T> Send for Filter<F, T> where
    F: Send,
    T: Send

impl<F, T> Sync for Filter<F, T> where
    F: Sync,
    T: Sync

impl<F, T> Unpin for Filter<F, T> where
    F: Unpin,
    T: Unpin

impl<F, T> UnwindSafe for Filter<F, T> where
    F: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.