Struct juniper::RootNode [] [src]

pub struct RootNode<InnerT, QueryT, MutationT = ()> { /* fields omitted */ }

Root query node of a schema

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

Methods

impl<InnerT, QueryT, MutationT> RootNode<InnerT, QueryT, MutationT> where QueryT: GraphQLType<InnerT>, MutationT: GraphQLType<InnerT>
[src]

Construct a new root node from query and mutation nodes

If the schema should not support mutations, you can pass in () to remove the mutation type from the schema.

Trait Implementations

impl<CtxT, QueryT, MutationT> GraphQLType<CtxT> for RootNode<CtxT, QueryT, MutationT> where QueryT: GraphQLType<CtxT>, MutationT: GraphQLType<CtxT>
[src]

The name of the GraphQL type to expose. Read more

The meta type representing this GraphQL type.

Resolve the value of a single field on this type. Read more

Resolve this interface or union into a concrete type Read more

Return the concrete type name for this instance/union. Read more

Resolve the provided selection set against the current object. Read more