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§

source

type MutationRoot: ObjectType

The type of the mutation root.

Required Methods§

source

fn mutation_root( runtime: Arc<ServiceRuntime<Application>>, ) -> Self::MutationRoot

Returns the mutation root of the object.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Application> GraphQLMutationRoot<Application> for Operation
where Application: Service, ServiceRuntime<Application>: Send + Sync,