Struct juniper::Executor[][src]

pub struct Executor<'a, CtxT> where
    CtxT: 'a, 
{ /* fields omitted */ }

Query execution engine

The executor helps drive the query execution in a schema. It keeps track of the current field stack, context, variables, and errors.

Methods

impl<'a, CtxT> Executor<'a, CtxT>
[src]

Resolve a single arbitrary value, mapping the context to a new type

Resolve a single arbitrary value into an ExecutionResult

Resolve a single arbitrary value into a return value

If the field fails to resolve, null will be returned.

Derive a new executor by replacing the context

This can be used to connect different types, e.g. from different Rust libraries, that require different context types.

Access the current context

You usually provide the context when calling the top-level execute function, or using the context factory in the Iron integration.

The currently executing schema

The current location of the executor

Add an error to the execution engine at the current executor location

Add an error to the execution engine at a specific location

Construct a lookahead selection for the current selection

This allows to see the whole selection and preform operations affecting the childs

Auto Trait Implementations

impl<'a, CtxT> Send for Executor<'a, CtxT> where
    CtxT: Sync

impl<'a, CtxT> Sync for Executor<'a, CtxT> where
    CtxT: Sync