pub fn new(context_factory: CtxFactory, query: Query, mutation: Mutation) -> Self {
        GraphQLHandler {
            context_factory: context_factory,
            root_node: RootNode::new(query, mutation),
        }
    }
/// Build a new GraphQL handler
///
/// The context factory will receive the Iron request object and is
/// expected to construct a context object for the given schema. This can
/// be used to construct e.g. database connections or similar data that
/// the schema needs to execute the query.
Build a new GraphQL handler
The context factory will receive the Iron request object and is
expected to construct a context object for the given schema. This can
be used to construct e.g. database connections or similar data that
the schema needs to execute the query.
Build a new GraphQL handler The context factory will receive the Iron request object and is expected to construct a context object for the given schema . This can be used to construct e . g . database connections or similar data that the schema needs to execute the query .
pub fn new(context_factory: CtxFactory, query: Query, mutation: Mutation) -> Self {
        GraphQLHandler {
            context_factory: context_factory,
            root_node: RootNode::new(query, mutation),
        }
    }
pub fn new ( context_factory : CtxFactory , query : Query , mutation : Mutation ) -> Self { GraphQLHandler { context_factory : context_factory , root_node : RootNode :: new ( query , mutation ) , } }
Build a new GraphQL handler
The context factory will receive the Iron request object and is
expected to construct a context object for the given schema.
Build a new GraphQL handler The context factory will receive the Iron request object and is expected to construct a context object for the given schema .
context_factory
CtxFactory
query
Query
mutation
Mutation
context_factory
CtxFactory
query
Query
mutation
Mutation