[−][src]Struct juniper::RootNode
Root query node of a schema
This brings the mutation and query types together, and provides the predefined metadata fields.
Methods
impl<'a, QueryT, MutationT, S> RootNode<'a, QueryT, MutationT, S> where
S: ScalarValue + 'a,
QueryT: GraphQLType<S, TypeInfo = ()>,
MutationT: GraphQLType<S, TypeInfo = ()>,
&'b S: ScalarRefValue<'b>,
[src]
S: ScalarValue + 'a,
QueryT: GraphQLType<S, TypeInfo = ()>,
MutationT: GraphQLType<S, TypeInfo = ()>,
&'b S: ScalarRefValue<'b>,
pub fn new(query_obj: QueryT, mutation_obj: MutationT) -> Self where
&'b S: ScalarRefValue<'b>,
[src]
&'b S: ScalarRefValue<'b>,
Construct a new root node from query and mutation nodes
If the schema should not support mutations, use the
new
constructor instead.
impl<'a, S, QueryT, MutationT> RootNode<'a, QueryT, MutationT, S> where
QueryT: GraphQLType<S>,
MutationT: GraphQLType<S>,
S: ScalarValue + 'a,
&'b S: ScalarRefValue<'b>,
[src]
QueryT: GraphQLType<S>,
MutationT: GraphQLType<S>,
S: ScalarValue + 'a,
&'b S: ScalarRefValue<'b>,
pub fn new_with_info(
query_obj: QueryT,
mutation_obj: MutationT,
query_info: QueryT::TypeInfo,
mutation_info: MutationT::TypeInfo
) -> Self where
&'b S: ScalarRefValue<'b>,
[src]
query_obj: QueryT,
mutation_obj: MutationT,
query_info: QueryT::TypeInfo,
mutation_info: MutationT::TypeInfo
) -> Self where
&'b S: ScalarRefValue<'b>,
Construct a new root node from query and mutation nodes, while also providing type info objects for the query and mutation types.
Trait Implementations
impl<'a, CtxT, S, QueryT, MutationT> GraphQLType<S> for RootNode<'a, QueryT, MutationT, S> where
S: ScalarValue,
QueryT: GraphQLType<S, Context = CtxT>,
MutationT: GraphQLType<S, Context = CtxT>,
&'b S: ScalarRefValue<'b>,
[src]
S: ScalarValue,
QueryT: GraphQLType<S, Context = CtxT>,
MutationT: GraphQLType<S, Context = CtxT>,
&'b S: ScalarRefValue<'b>,
type Context = CtxT
The expected context type for this GraphQL type Read more
type TypeInfo = QueryT::TypeInfo
Type that may carry additional schema information Read more
fn name(info: &QueryT::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &QueryT::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
S: 'r,
&'b S: ScalarRefValue<'b>,
[src]
info: &QueryT::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
S: 'r,
&'b S: ScalarRefValue<'b>,
fn resolve_field(
&self,
info: &QueryT::TypeInfo,
field: &str,
args: &Arguments<S>,
executor: &Executor<CtxT, S>
) -> ExecutionResult<S>
[src]
&self,
info: &QueryT::TypeInfo,
field: &str,
args: &Arguments<S>,
executor: &Executor<CtxT, S>
) -> ExecutionResult<S>
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
Resolve this interface or union into a concrete type Read more
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
Return the concrete type name for this instance/union. Read more
impl<'a, QueryT: Debug + GraphQLType<S>, MutationT: Debug + GraphQLType<S>, S: Debug> Debug for RootNode<'a, QueryT, MutationT, S> where
S: ScalarValue,
&'b S: ScalarRefValue<'b>,
QueryT::TypeInfo: Debug,
MutationT::TypeInfo: Debug,
[src]
S: ScalarValue,
&'b S: ScalarRefValue<'b>,
QueryT::TypeInfo: Debug,
MutationT::TypeInfo: Debug,
Auto Trait Implementations
impl<'a, QueryT, MutationT, S> Send for RootNode<'a, QueryT, MutationT, S> where
MutationT: Send,
QueryT: Send,
S: Send,
<MutationT as GraphQLType<S>>::TypeInfo: Send,
<QueryT as GraphQLType<S>>::TypeInfo: Send,
MutationT: Send,
QueryT: Send,
S: Send,
<MutationT as GraphQLType<S>>::TypeInfo: Send,
<QueryT as GraphQLType<S>>::TypeInfo: Send,
impl<'a, QueryT, MutationT, S> Sync for RootNode<'a, QueryT, MutationT, S> where
MutationT: Sync,
QueryT: Sync,
S: Sync,
<MutationT as GraphQLType<S>>::TypeInfo: Sync,
<QueryT as GraphQLType<S>>::TypeInfo: Sync,
MutationT: Sync,
QueryT: Sync,
S: Sync,
<MutationT as GraphQLType<S>>::TypeInfo: Sync,
<QueryT as GraphQLType<S>>::TypeInfo: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,