sangria.execution

Members list

Concise view

Type members

Classlikes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ExecutionScheme.type

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class BeforeFieldResult[Ctx, FieldVal](fieldVal: FieldVal, actionOverride: Option[Action[Ctx, _]], attachment: Option[MiddlewareAttachment])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class CollectedField(name: String, field: Field, allFields: Try[Vector[Field]])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class CollectedFields(namesOrdered: Vector[String], fields: Vector[CollectedField])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Defer

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
case class ExceptionHandler(onException: PartialFunction[(ResultMarshaller, Throwable), HandledException], onViolation: PartialFunction[(ResultMarshaller, Violation), HandledException], onUserFacingError: PartialFunction[(ResultMarshaller, UserFacingError), HandledException])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class ExecutionError(message: String, val exceptionHandler: ExceptionHandler, val sourceMapper: Option[SourceMapper], val locations: List[AstLocation]) extends Exception with AstNodeLocation with UserFacingError with ErrorWithResolver

Attributes

Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class ExecutionResult[Ctx, Res](ctx: Ctx, result: Res, errors: Vector[RegisteredError], middlewareVals: List[(Any, Middleware[_])], validationTiming: TimeMeasurement, queryReducerTiming: TimeMeasurement)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed trait ExecutionScheme

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Extended.type
object Default.type

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Executor[Ctx, Root](schema: Schema[Ctx, Root], queryValidator: QueryValidator, deferredResolver: DeferredResolver[Ctx], exceptionHandler: ExceptionHandler, deprecationTracker: DeprecationTracker, middleware: List[Middleware[Ctx]], maxQueryDepth: Option[Int], queryReducers: List[QueryReducer[Ctx, _]])(implicit executionContext: ExecutionContext)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Executor

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Extension[In](data: In)(implicit iu: InputUnmarshaller[In])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class FieldCollector[Ctx, Val](schema: Schema[Ctx, Val], document: Document, variables: Map[String, VariableValue], sourceMapper: Option[SourceMapper], valueCollector: ValueCollector[Ctx, _], exceptionHandler: ExceptionHandler)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
trait FieldTag

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FieldTag

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait HandledException

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
class HasIntrospectionReducer[Ctx](includeTypeName: Boolean, action: (Boolean, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]

Attributes

Graph
Supertypes
trait QueryReducer[Ctx, Ctx]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class InputDocumentMaterializer[Vars](schema: Schema[_, _], variables: Vars)(implicit iu: InputUnmarshaller[Vars])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class InternalExecutionError(message: String) extends Exception with AstNodeLocation with ErrorWithResolver

Attributes

Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
case object IntrospectionNotAllowedError extends Exception with UserFacingError

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class MappedCtxUpdate[Ctx, Val, NewVal](ctxFn: Val => Ctx, mapFn: Val => NewVal, onError: Throwable => Unit)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class MaxQueryDepthReachedError(maxDepth: Int) extends Exception with UserFacingError

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
class MeasureComplexity[Ctx](action: (Double, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]

Attributes

Companion:
object
Graph
Supertypes
trait QueryReducer[Ctx, Ctx]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class MeasureQueryDepth[Ctx](action: (Int, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]

Attributes

Graph
Supertypes
trait QueryReducer[Ctx, Ctx]
class Object
trait Matchable
class Any
trait Middleware[-Ctx]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Middleware

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
trait Middleware[Ctx]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
trait MiddlewareBeforeField[Ctx] extends Middleware[Ctx]

Attributes

Graph
Supertypes
trait Middleware[Ctx]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Graph
Supertypes
trait Middleware[Ctx]
class Object
trait Matchable
class Any
trait MiddlewareExtension[Ctx] extends Middleware[Ctx]

Attributes

Graph
Supertypes
trait Middleware[Ctx]
class Object
trait Matchable
class Any
Known subtypes
trait MiddlewareFromScalar[Ctx] extends Middleware[Ctx]

Attributes

Graph
Supertypes
trait Middleware[Ctx]
class Object
trait Matchable
class Any
case class MiddlewareQueryContext[+Ctx, RootVal, Input](ctx: Ctx, executor: Executor[_ <: Ctx, RootVal], queryAst: Document, operationName: Option[String], variables: Input, inputUnmarshaller: InputUnmarshaller[Input], validationTiming: TimeMeasurement, queryReducerTiming: TimeMeasurement)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait MiddlewareToScalar[Ctx] extends Middleware[Ctx]

Attributes

Graph
Supertypes
trait Middleware[Ctx]
class Object
trait Matchable
class Any
case class MultipleHandledExceptions(messages: Vector[(String, Map[String, Node], List[AstLocation])], addFieldsInExtensions: Boolean, addFieldsInError: Boolean) extends HandledException

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class PreparedField[Ctx, Root](field: Field[Ctx, Root], args: Args)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class PreparedQuery[Ctx, Root, Input]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
trait QueryReducer[-Ctx, +Out]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class TagCollector[Ctx, T]

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class QueryReducingError(cause: Throwable, exceptionHandler: ExceptionHandler) extends Exception with QueryAnalysisError

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class RegisteredError(path: ExecutionPath, error: Throwable, position: Option[AstLocation])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class Resolver[Ctx](val marshaller: ResultMarshaller, middlewareCtx: MiddlewareQueryContext[Ctx, _, _], schema: Schema[Ctx, _], valueCollector: ValueCollector[Ctx, _], variables: Map[String, VariableValue], fieldCollector: FieldCollector[Ctx, _], userContext: Ctx, exceptionHandler: ExceptionHandler, deferredResolver: DeferredResolver[Ctx], sourceMapper: Option[SourceMapper], deprecationTracker: DeprecationTracker, middleware: List[(Any, Middleware[Ctx])], maxQueryDepth: Option[Int], deferredResolverState: Any, preserveOriginalErrors: Boolean, validationTiming: TimeMeasurement, queryReducerTiming: TimeMeasurement, queryAst: Document)(implicit executionContext: ExecutionContext)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Resolver

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class ResultResolver(val marshaller: ResultMarshaller, exceptionHandler: ExceptionHandler, preserveOriginalErrors: Boolean)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class SimpleAstBasedExtensionMiddleware[Ctx](extensionFn: MiddlewareQueryContext[Ctx, _, _] => Value) extends Middleware[Ctx] with MiddlewareExtension[Ctx]

Attributes

Graph
Supertypes
trait Middleware[Ctx]
class Object
trait Matchable
class Any
case class SingleHandledException(message: String, additionalFields: Map[String, Node], locations: List[AstLocation], addFieldsInExtensions: Boolean, addFieldsInError: Boolean) extends HandledException

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class StopWatch(startTime: Long, startNanos: Long)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object StopWatch

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class StringTag(name: String)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class SubscriptionField[S[_]](stream: SubscriptionStream[S]) extends FieldTag

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait FieldTag
class Object
trait Matchable
class Any
class TagCollector[Ctx, T](tagMatcher: PartialFunction[FieldTag, T], action: (Seq[T], Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]

Attributes

Graph
Supertypes
trait QueryReducer[Ctx, Ctx]
class Object
trait Matchable
class Any
case class TimeMeasurement(startMs: Long, endMs: Long, durationNanos: Long)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Trinary[+T]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Defined[T]
object Null.type
object Undefined.type
object Trinary

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Trinary.type
case class UndefinedConcreteTypeError(path: ExecutionPath, abstractType: AbstractType, possibleTypes: Vector[ObjectType[_, _]], value: Any, exceptionHandler: ExceptionHandler, sourceMapper: Option[SourceMapper], locations: List[AstLocation]) extends InternalExecutionError

Attributes

Companion:
object
Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
class ValueCoercionHelper[Ctx](sourceMapper: Option[SourceMapper], deprecationTracker: DeprecationTracker, userContext: Option[Ctx])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class ValueCollector[Ctx, Input](schema: Schema[_, _], inputVars: Input, sourceMapper: Option[SourceMapper], deprecationTracker: DeprecationTracker, userContext: Ctx, exceptionHandler: ExceptionHandler, fromScalarMiddleware: Option[(Any, InputType[_]) => Option[Either[Violation, Any]]], ignoreErrors: Boolean)(implicit um: InputUnmarshaller[Input])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class VariableValue(fn: (ResultMarshaller, ResultMarshaller, InputType[_]) => Either[Vector[Violation], Trinary[Node]])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes