Struct juniper::EmptyMutation
source · Expand description
Utility type to define read-only schemas
If you instantiate RootNode
with this as the mutation, no mutation will be
generated for the schema.
Implementations§
Trait Implementations§
source§impl<T> Default for EmptyMutation<T>
impl<T> Default for EmptyMutation<T>
source§impl<S, T> GraphQLType<S> for EmptyMutation<T>where
S: ScalarValue,
impl<S, T> GraphQLType<S> for EmptyMutation<T>where
S: ScalarValue,
source§impl<S, T> GraphQLValue<S> for EmptyMutation<T>where
S: ScalarValue,
impl<S, T> GraphQLValue<S> for EmptyMutation<T>where
S: ScalarValue,
§type Context = T
type Context = T
Context type for this
GraphQLValue
. Read more§type TypeInfo = ()
type TypeInfo = ()
Type that may carry additional schema information for this
GraphQLValue
. Read moresource§fn resolve_field(
&self,
_info: &Self::TypeInfo,
_field_name: &str,
_arguments: &Arguments<'_, S>,
_executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
fn resolve_field(
&self,
_info: &Self::TypeInfo,
_field_name: &str,
_arguments: &Arguments<'_, S>,
_executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
Resolves the value of a single field on this
GraphQLValue
. Read moresource§fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
Resolves this
GraphQLValue
(being an interface or an union) into a concrete
downstream object type. Read moresource§fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
Returns the concrete
GraphQLType
name for this GraphQLValue
being an interface,
an union or an object. Read moresource§impl<S, T> GraphQLValueAsync<S> for EmptyMutation<T>where
Self::TypeInfo: Sync,
Self::Context: Sync,
S: ScalarValue + Send + Sync,
impl<S, T> GraphQLValueAsync<S> for EmptyMutation<T>where
Self::TypeInfo: Sync,
Self::Context: Sync,
S: ScalarValue + Send + Sync,
source§fn resolve_field_async<'a>(
&'a self,
_info: &'a Self::TypeInfo,
_field_name: &'a str,
_arguments: &'a Arguments<'_, S>,
_executor: &'a Executor<'_, '_, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
fn resolve_field_async<'a>(
&'a self,
_info: &'a Self::TypeInfo,
_field_name: &'a str,
_arguments: &'a Arguments<'_, S>,
_executor: &'a Executor<'_, '_, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
Resolves the value of a single field on this
GraphQLValueAsync
. Read moresource§fn resolve_into_type_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
type_name: &str,
selection_set: Option<&'a [Selection<'a, S>]>,
executor: &'a Executor<'a, 'a, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
fn resolve_into_type_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
type_name: &str,
selection_set: Option<&'a [Selection<'a, S>]>,
executor: &'a Executor<'a, 'a, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
Resolves this
GraphQLValueAsync
(being an interface or an union) into a
concrete downstream object type. Read more