linera_sdk::graphql

Trait 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.

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.

Implementors§

Source§

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