pub trait GraphQLMutationRoot<Application>where
Application: Service,{
type MutationRoot: ObjectType;
// Required method
fn mutation_root(
runtime: Arc<ServiceRuntime<Application>>,
) -> Self::MutationRoot;
}
Expand description
An object associated with a GraphQL mutation root. Those are typically used to build
an async_graphql::Schema
object.
Required Associated Types§
Sourcetype MutationRoot: ObjectType
type MutationRoot: ObjectType
The type of the mutation root.
Required Methods§
Sourcefn mutation_root(
runtime: Arc<ServiceRuntime<Application>>,
) -> Self::MutationRoot
fn mutation_root( runtime: Arc<ServiceRuntime<Application>>, ) -> Self::MutationRoot
Returns the mutation root of the object.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.