Trait linera_sdk::graphql::GraphQLMutationRoot
source · 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.
Object Safety§
This trait is not object safe.