[−][src]Struct wundergraph::query_builder::selection::filter::Filter
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]
F: InnerFilter,
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]
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,
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]
DB: Backend + 'static,
F: InnerFilter + BuildFilter<DB> + 'static,
T: 'static,
F::Ret: AppearsOnTable<T>,
type Ret = Box<dyn BoxableFilter<T, DB, SqlType = Bool>>
The return type of the constructed filter
fn into_filter(self) -> Option<Self::Ret>
[src]
impl<F: Debug, T: Debug> Debug for Filter<F, T>
[src]
impl<F, T> FromInputValue<WundergraphScalarValue> for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<F, T> FromLookAheadValue for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
fn from_look_ahead(v: &LookAheadValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<F, T> GraphQLType<WundergraphScalarValue> for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
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
fn name(info: &Self::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
impl<F, T> InnerFilter for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
type Context = F::Context
The used context type
const FIELD_COUNT: usize
[src]
fn from_inner_input_value(
obj: IndexMap<&str, &InputValue<WundergraphScalarValue>>
) -> Option<Self>
[src]
obj: IndexMap<&str, &InputValue<WundergraphScalarValue>>
) -> Option<Self>
fn from_inner_look_ahead(
objs: &[(&str, LookAheadValue<WundergraphScalarValue>)]
) -> Self
[src]
objs: &[(&str, LookAheadValue<WundergraphScalarValue>)]
) -> Self
fn to_inner_input_value(
&self,
map: &mut IndexMap<&str, InputValue<WundergraphScalarValue>>
)
[src]
&self,
map: &mut IndexMap<&str, InputValue<WundergraphScalarValue>>
)
fn register_fields<'r>(
info: &NameBuilder<Self>,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> Vec<Argument<'r, WundergraphScalarValue>>
[src]
info: &NameBuilder<Self>,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> Vec<Argument<'r, WundergraphScalarValue>>
impl<F, T> Nameable for Filter<F, T> where
F: Nameable,
[src]
F: Nameable,
impl<F, T> ToInputValue<WundergraphScalarValue> for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
fn to_input_value(&self) -> InputValue<WundergraphScalarValue>
[src]
Auto Trait Implementations
impl<F, T> RefUnwindSafe for Filter<F, T> where
F: RefUnwindSafe,
T: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for Filter<F, T> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<F, T> Sync for Filter<F, T> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<F, T> Unpin for Filter<F, T> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,
impl<F, T> UnwindSafe for Filter<F, T> where
F: UnwindSafe,
T: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,