pub trait MutationBuilder<'de>: Sized {
    type Variables;

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

Provides a build function on QueryFragments that represent a mutation

Required Associated Types§

source

type Variables

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

Required Methods§

source

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

Constructs a mutation operation for this QueryFragment.

Implementors§

source§

impl<'de, T> MutationBuilder<'de> for Twhere T: QueryFragment<'de>, T::SchemaType: MutationRoot,

§

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