sangria.execution
package sangria.execution
Members list
Concise view
Type members
Classlikes
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object ExecutionScheme.type
case class AttributeCoercionError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError with WithViolations with QueryAnalysisError
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
case class BeforeFieldResult[Ctx, FieldVal](fieldVal: FieldVal, actionOverride: Option[Action[Ctx, _]], attachment: Option[MiddlewareAttachment])
object BeforeFieldResult
Attributes
- Companion:
- class
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- BeforeFieldResult.type
class CollectedFieldsBuilder
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
trait DeferredWithInfo
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class Defer
trait DeprecationTracker
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object NilDeprecationTracker.type
object DeprecationTracker
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- DeprecationTracker.type
trait ErrorWithResolver
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class ExecutionErrorclass AttributeCoercionErrorclass OperationSelectionErrorclass ValidationErrorclass VariableCoercionErrorclass BatchExecutionErrorclass InternalExecutionErrortrait QueryAnalysisErrorclass QueryReducingError
- Self type
case class ExceptionHandler(onException: PartialFunction[(ResultMarshaller, Throwable), HandledException], onViolation: PartialFunction[(ResultMarshaller, Violation), HandledException], onUserFacingError: PartialFunction[(ResultMarshaller, UserFacingError), HandledException])
object ExceptionHandler
Attributes
- Companion:
- class
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ExceptionHandler.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
- trait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
class ExecutionPath
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
object ExecutionPath
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ExecutionPath.type
case class ExecutionResult[Ctx, Res](ctx: Ctx, result: Res, errors: Vector[RegisteredError], middlewareVals: List[(Any, Middleware[_])], validationTiming: TimeMeasurement, queryReducerTiming: TimeMeasurement)
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ExecutionScheme.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)
object Executor
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 Objecttrait Matchableclass Any
trait FieldTag
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
object FieldTag
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class SingleHandledException
object HandledException
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- HandledException.type
class HasIntrospectionReducer[Ctx](includeTypeName: Boolean, action: (Boolean, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]
Attributes
- Graph
- Supertypes
case class InputDocumentMaterializationError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError with WithViolations with QueryAnalysisError
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
case class InputDocumentMaterializer[Vars](schema: Schema[_, _], variables: Vars)(implicit iu: InputUnmarshaller[Vars])
object InputDocumentMaterializer
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
abstract class InternalExecutionError(message: String) extends Exception with AstNodeLocation with ErrorWithResolver
Attributes
- Graph
- Supertypes
- trait ErrorWithResolvertrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Producttrait Equalstrait UserFacingErrorclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
- Self type
Attributes
- Graph
- Supertypes
case class MappedCtxUpdate[Ctx, Val, NewVal](ctxFn: Val => Ctx, mapFn: Val => NewVal, onError: Throwable => Unit)
case class MaterializedSchemaValidationError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError with WithViolations with QueryAnalysisError
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait UserFacingErrorclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
class MeasureComplexity[Ctx](action: (Double, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]
Attributes
- Companion:
- object
- Graph
- Supertypes
object MeasureComplexity
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- MeasureComplexity.type
class MeasureQueryDepth[Ctx](action: (Int, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]
Attributes
- Graph
- Supertypes
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait MiddlewareBeforeField[Ctx]trait MiddlewareAfterField[Ctx]trait MiddlewareErrorField[Ctx]trait MiddlewareExtension[Ctx]class SimpleAstBasedExtensionMiddleware[Ctx]trait MiddlewareFromScalar[Ctx]trait MiddlewareToScalar[Ctx]
object Middleware
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Middleware.type
Attributes
- Graph
- Supertypes
trait MiddlewareAttachment
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- Known subtypes
- trait MiddlewareAfterField[Ctx]trait MiddlewareErrorField[Ctx]
Attributes
- Graph
- Supertypes
Attributes
- Graph
- Supertypes
- Known subtypes
- class SimpleAstBasedExtensionMiddleware[Ctx]
Attributes
- Graph
- Supertypes
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
case class MultipleHandledExceptions(messages: Vector[(String, Map[String, Node], List[AstLocation])], addFieldsInExtensions: Boolean, addFieldsInError: Boolean) extends HandledException
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait HandledExceptionclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- Self type
case class OperationSelectionError(message: String, eh: ExceptionHandler, sm: Option[SourceMapper], pos: List[AstLocation]) extends ExecutionError with QueryAnalysisError
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait QueryAnalysisErrorclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- Known subtypes
- class AttributeCoercionErrorclass OperationSelectionErrorclass QueryReducingErrorclass ValidationErrorclass VariableCoercionErrorclass BatchExecutionError
- Self type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
object QueryReducer
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- QueryReducer.type
object QueryReducerExecutor
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- QueryReducerExecutor.type
case class QueryReducingError(cause: Throwable, exceptionHandler: ExceptionHandler) extends Exception with QueryAnalysisError
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait QueryAnalysisErrortrait ErrorWithResolverclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass 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 Objecttrait Matchableclass Any
object Resolver
class ResultResolver(val marshaller: ResultMarshaller, exceptionHandler: ExceptionHandler, preserveOriginalErrors: Boolean)
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
object ResultResolver
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ResultResolver.type
class SimpleAstBasedExtensionMiddleware[Ctx](extensionFn: MiddlewareQueryContext[Ctx, _, _] => Value) extends Middleware[Ctx] with MiddlewareExtension[Ctx]
Attributes
- Graph
- Supertypes
case class SingleHandledException(message: String, additionalFields: Map[String, Node], locations: List[AstLocation], addFieldsInExtensions: Boolean, addFieldsInError: Boolean) extends HandledException
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait HandledExceptionclass Objecttrait Matchableclass Any
object StopWatch
class TagCollector[Ctx, T](tagMatcher: PartialFunction[FieldTag, T], action: (Seq[T], Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]
Attributes
- Graph
- Supertypes
object TimeMeasurement
Attributes
- Companion:
- class
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- TimeMeasurement.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
object Trinary
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 Producttrait Equalsclass InternalExecutionErrortrait ErrorWithResolvertrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
object UndefinedConcreteTypeError
Attributes
- Companion:
- class
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
trait UserFacingError
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class ExecutionErrorclass AttributeCoercionErrorclass OperationSelectionErrorclass ValidationErrorclass VariableCoercionErrorclass BatchExecutionErrorobject IntrospectionNotAllowedError.typetrait WithViolationsobject MaterializedSchemaException.type
case class ValidationError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError with WithViolations with QueryAnalysisError
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
class ValueCoercionHelper[Ctx](sourceMapper: Option[SourceMapper], deprecationTracker: DeprecationTracker, userContext: Option[Ctx])
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
object ValueCoercionHelper
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ValueCoercionHelper.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 Objecttrait Matchableclass Any
object ValueCollector
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ValueCollector.type
case class VariableCoercionError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError with WithViolations with QueryAnalysisError
Attributes
- Graph
- Supertypes
- trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- Known subtypes