Trait cynic::QueryBuilder

source ·
pub trait QueryBuilder<'de>: Sized {
    type Variables;

    // Required method
    fn build(vars: Self::Variables) -> Operation<Self, Self::Variables>;
}
Expand description

Provides a build function on QueryFragments that represent a query

Required Associated Types§

source

type Variables

The type that this query takes as variables. May be () if no variables are accepted.

Required Methods§

source

fn build(vars: Self::Variables) -> Operation<Self, Self::Variables>

Constructs a query operation for this QueryFragment.

Implementors§

source§

impl<'de, T> QueryBuilder<'de> for Twhere T: QueryFragment<'de>, T::SchemaType: QueryRoot,

§

type Variables = <T as QueryFragment<'de>>::Variables