Struct juniper::RootNode[][src]

pub struct RootNode<'a, QueryT: GraphQLType<S>, MutationT: GraphQLType<S>, SubscriptionT: GraphQLType<S>, S = DefaultScalarValue> where
    S: ScalarValue
{ /* fields omitted */ }
Expand description

Root query node of a schema

This brings the mutation, subscription and query types together, and provides the predefined metadata fields.

Implementations

Constructs a new RootNode from query, mutation and subscription nodes, parametrizing it with a DefaultScalarValue.

Constructs a new RootNode from query, mutation and subscription nodes, parametrizing it with the provided ScalarValue.

Construct a new root node from query and mutation nodes, while also providing type info objects for the query and mutation types.

The schema definition as a String in the GraphQL Schema Language format.

The schema definition as a graphql_parser Document.

Trait Implementations

Formats the value using the given formatter. Read more

Returns name of this GraphQLType to expose. Read more

Returns MetaType representing this GraphQLType.

Context type for this GraphQLValue. Read more

Type that may carry additional schema information for this GraphQLValue. Read more

Returns name of the GraphQLType exposed by this GraphQLValue. Read more

Returns the concrete GraphQLType name for this GraphQLValue being an interface, an union or an object. Read more

Resolves the value of a single field on this GraphQLValue. Read more

Resolves the provided selection_set against this GraphQLValue. Read more

Resolves this GraphQLValue (being an interface or an union) into a concrete downstream object type. Read more

Resolves the value of a single field on this GraphQLValueAsync. Read more

Resolves this GraphQLValueAsync (being an interface or an union) into a concrete downstream object type. Read more

Resolves the provided selection_set against this GraphQLValueAsync. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.