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]

[src]

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

[src]

Resolve a single arbitrary value into an ExecutionResult

[src]

Resolve a single arbitrary value into a return value

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

[src]

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.

[src]

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.

[src]

The currently executing schema

[src]

The current location of the executor

[src]

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

[src]

Add an error to the execution engine at a specific location