Module juniper::executor[][src]

Expand description

Resolve the document to values

Structs

ConcreteLookAheadSelection

A selection performed by a query on a concrete type

ExecutionError

Error type for errors that occur during query execution

Executor

Query execution engine

FieldError

Error type for errors that occur during field resolution

LookAheadArgument

An argument passed into the query

LookAheadSelection

A selection performed by a query

OwnedExecutor

Executor owning all its variables. Can be used after Executor was destroyed.

Registry

A type registry used to build schemas

Enums

Applies

An enum that describes if a field is available in all types of the interface or only in a certain subtype

FieldPath
LookAheadValue

A JSON-like value that can is used as argument in the query execution

Traits

Context

Marker trait for types that can act as context objects for GraphQL types.

FromContext

Conversion trait for context types

IntoFieldError

Custom error handling trait to enable Error types other than FieldError to be specified as return value.

LookAheadMethods

Set of common methods for ConcreteLookAheadSelection and LookAheadSelection.

Functions

execute_validated_query

Create new Executor and start query/mutation execution. Returns IsSubscription error if subscription is passed.

execute_validated_query_async

Create new Executor and start asynchronous query execution. Returns IsSubscription error if subscription is passed.

resolve_validated_subscription

Initialize new Executor and start resolving subscription into stream asynchronously. Returns NotSubscription error if query or mutation is passed

Type Definitions

ExecutionResult

The result of resolving an unspecified field

FieldResult

The result of resolving the value of a field of type T

ValuesStream

Boxed Stream yielding Result<Value<S>, ExecutionError<S>>

Variables

The map of variables used for substitution during query execution