sangria.execution
package sangria.execution
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ExecutionScheme.type
case class AttributeCoercionError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError, WithViolations, QueryAnalysisError
Attributes
- Supertypes
-
trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
case class BeforeFieldResult[Ctx, FieldVal](fieldVal: FieldVal, actionOverride: Option[Action[Ctx, _]], attachment: Option[MiddlewareAttachment])
object BeforeFieldResult
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
BeforeFieldResult.type
class CollectedFieldsBuilder
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
trait DeferredWithInfo
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
trait DeprecationTracker
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
object DeprecationTracker
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DeprecationTracker.type
trait ErrorWithResolver
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ExecutionErrorclass BatchExecutionErrorclass AttributeCoercionErrorclass OperationSelectionErrorclass ValidationErrorclass VariableCoercionErrorclass InternalExecutionErrortrait QueryAnalysisErrorclass QueryReducingErrorShow all
- 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
- 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, AstNodeLocation, UserFacingError, ErrorWithResolver
Attributes
- Supertypes
-
trait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class BatchExecutionErrorclass AttributeCoercionErrorclass OperationSelectionErrorclass ValidationErrorclass VariableCoercionErrorShow all
class ExecutionPath
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
object ExecutionPath
Attributes
- Companion
- class
- 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)
trait ExecutionScheme
object ExecutionScheme extends AlternativeExecutionScheme
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ExecutionScheme.type
case class Executor[Ctx, Root](schema: Schema[Ctx, Root], queryValidator: QueryValidator, deferredResolver: DeferredResolver[Ctx], exceptionHandler: ExceptionHandler, deprecationTracker: Option[DeprecationTracker], middleware: List[Middleware[Ctx]], maxQueryDepth: Option[Int], queryReducers: List[QueryReducer[Ctx, _]], errorsLimit: Option[Int])(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
- Supertypes
-
class Objecttrait Matchableclass Any
trait FieldTag
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
object FieldTag
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SingleHandledException
object HandledException
Attributes
- Companion
- trait
- 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
- Supertypes
case class InputDocumentMaterializationError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError, WithViolations, QueryAnalysisError
Attributes
- Supertypes
-
trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
case class InputDocumentMaterializer[Vars](schema: Schema[_, _], variables: Vars)(implicit iu: InputUnmarshaller[Vars])
object InputDocumentMaterializer
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
abstract class InternalExecutionError(message: String) extends Exception, AstNodeLocation, ErrorWithResolver
Attributes
- Supertypes
-
trait ErrorWithResolvertrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
case object IntrospectionNotAllowedError extends Exception, UserFacingError
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Producttrait Equalstrait UserFacingErrorclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
class LoggingDeprecationTracker(logFn: String => Unit) extends DeprecationTracker
Attributes
- 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, WithViolations, QueryAnalysisError
Attributes
- Supertypes
-
trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
case class MaxQueryDepthReachedError(maxDepth: Int) extends Exception, UserFacingError
Attributes
- Supertypes
-
trait Producttrait Equalstrait UserFacingErrorclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
class MeasureComplexity[Ctx](action: (Double, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]
Attributes
- Companion
- object
- Supertypes
object MeasureComplexity
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MeasureComplexity.type
class MeasureQueryDepth[Ctx](action: (Int, Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]
Attributes
- Supertypes
Attributes
- Companion
- object
- 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]Show all
object Middleware
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Middleware.type
trait MiddlewareAfterField[Ctx] extends MiddlewareBeforeField[Ctx]
Attributes
- Supertypes
trait MiddlewareAttachment
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
trait MiddlewareBeforeField[Ctx] extends Middleware[Ctx]
Attributes
- Supertypes
- Known subtypes
-
trait MiddlewareAfterField[Ctx]trait MiddlewareErrorField[Ctx]
trait MiddlewareErrorField[Ctx] extends MiddlewareBeforeField[Ctx]
Attributes
- Supertypes
trait MiddlewareExtension[Ctx] extends Middleware[Ctx]
Attributes
- Supertypes
- Known subtypes
-
class SimpleAstBasedExtensionMiddleware[Ctx]
trait MiddlewareFromScalar[Ctx] extends Middleware[Ctx]
Attributes
- 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)
trait MiddlewareToScalar[Ctx] extends Middleware[Ctx]
Attributes
- Supertypes
case class MultipleHandledExceptions(messages: Vector[(String, Map[String, Node], List[AstLocation])], addFieldsInExtensions: Boolean, addFieldsInError: Boolean) extends HandledException
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HandledExceptionclass Objecttrait Matchableclass AnyShow all
case class OperationSelectionError(message: String, eh: ExceptionHandler, sm: Option[SourceMapper], pos: List[AstLocation]) extends ExecutionError, QueryAnalysisError
Attributes
- Supertypes
-
trait Producttrait Equalstrait QueryAnalysisErrorclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
trait QueryAnalysisError extends ErrorWithResolver
Attributes
- Supertypes
- Known subtypes
-
class BatchExecutionErrorclass AttributeCoercionErrorclass OperationSelectionErrorclass QueryReducingErrorclass ValidationErrorclass VariableCoercionErrorShow all
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
object QueryReducer
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
QueryReducer.type
object QueryReducerExecutor
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
QueryReducerExecutor.type
case class QueryReducingError(cause: Throwable, exceptionHandler: ExceptionHandler) extends Exception, QueryAnalysisError
Attributes
- Supertypes
-
trait Producttrait Equalstrait QueryAnalysisErrortrait ErrorWithResolverclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
object Resolver
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Resolver.type
class ResultResolver(val marshaller: ResultMarshaller, exceptionHandler: ExceptionHandler, preserveOriginalErrors: Boolean)
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
object ResultResolver
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ResultResolver.type
class SimpleAstBasedExtensionMiddleware[Ctx](extensionFn: MiddlewareQueryContext[Ctx, _, _] => Value) extends Middleware[Ctx], MiddlewareExtension[Ctx]
Attributes
- Supertypes
case class SingleHandledException(message: String, additionalFields: Map[String, Node], locations: List[AstLocation], addFieldsInExtensions: Boolean, addFieldsInError: Boolean) extends HandledException
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HandledExceptionclass Objecttrait Matchableclass AnyShow all
object StopWatch
case class SubscriptionField[S[_]](stream: SubscriptionStream[S]) extends FieldTag
class TagCollector[Ctx, T](tagMatcher: PartialFunction[FieldTag, T], action: (Seq[T], Ctx) => ReduceAction[Ctx, Ctx]) extends QueryReducer[Ctx, Ctx]
Attributes
- Supertypes
object TimeMeasurement
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TimeMeasurement.type
Attributes
- Companion
- object
- 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
- Supertypes
-
trait Producttrait Equalsclass InternalExecutionErrortrait ErrorWithResolvertrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
object UndefinedConcreteTypeError
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
trait UserFacingError
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ExecutionErrorclass BatchExecutionErrorclass AttributeCoercionErrorclass OperationSelectionErrorclass ValidationErrorclass VariableCoercionErrorobject IntrospectionNotAllowedError.typetrait WithViolationsobject MaterializedSchemaException.typeShow all
case class ValidationError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError, WithViolations, QueryAnalysisError
Attributes
- Supertypes
-
trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
class ValueCoercionHelper[Ctx](sourceMapper: Option[SourceMapper], deprecationTracker: Option[DeprecationTracker], userContext: Option[Ctx])
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
object ValueCoercionHelper
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ValueCoercionHelper.type
class ValueCollector[Ctx, Input](schema: Schema[_, _], inputVars: Input, sourceMapper: Option[SourceMapper], deprecationTracker: Option[DeprecationTracker], userContext: Ctx, exceptionHandler: ExceptionHandler, fromScalarMiddleware: Option[(Any, InputType[_]) => Option[Either[Violation, Any]]], ignoreErrors: Boolean)(implicit um: InputUnmarshaller[Input])
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
object ValueCollector
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ValueCollector.type
case class VariableCoercionError(violations: Vector[Violation], eh: ExceptionHandler) extends ExecutionError, WithViolations, QueryAnalysisError
Attributes
- Supertypes
-
trait Producttrait Equalstrait QueryAnalysisErrortrait WithViolationsclass ExecutionErrortrait ErrorWithResolvertrait UserFacingErrortrait AstNodeLocationclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
trait WithViolations extends UserFacingError
Attributes
- Supertypes
- Known subtypes
In this article