sangria.execution.Resolver
See theResolver companion object
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
Members list
Concise view
Type members
Classlikes
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait DeferredWithInfoclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait FieldResolutionclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class DeferredResultclass Result
case class Result(errors: ErrorRegistry, value: Option[Any], userContext: Option[Ctx]) extends Resolve
object SeqRes
case class StandardFieldResolution(errors: ErrorRegistry, action: LeafAction[Ctx, Any], ctxUpdate: Option[MappedCtxUpdate[Ctx, Any, Any]]) extends FieldResolution
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait FieldResolutionclass Objecttrait Matchableclass Any
case class StreamFieldResolution[Val, S[_]](errors: ErrorRegistry, value: SubscriptionValue[Ctx, Val, S], standardResolution: Any => StandardFieldResolution) extends FieldResolution
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait FieldResolutionclass Objecttrait Matchableclass Any
Value members
Concrete methods
def collectActionsPar(path: ExecutionPath, tpe: ObjectType[Ctx, _], value: Any, fields: CollectedFields, errorReg: ErrorRegistry, userCtx: Ctx): Actions
def collectProjections(path: ExecutionPath, field: Field[Ctx, _], astFields: Vector[Field], maxLevel: Int): Vector[ProjectedName]
def handleScheme(result: Future[((Vector[RegisteredError], Node), Ctx)], scheme: ExecutionScheme): Result[Ctx, Node]
def resolveActionsPar(path: ExecutionPath, tpe: ObjectType[Ctx, _], actions: (ErrorRegistry, Option[Vector[(Vector[Field], Option[(Field[Ctx, _], Option[MappedCtxUpdate[Ctx, Any, Any]], LeafAction[Ctx, _])])]]), userCtx: Ctx, fieldsNamesOrdered: Vector[String]): Resolve
def resolveField(userCtx: Ctx, tpe: ObjectType[Ctx, _], path: ExecutionPath, value: Any, errors: ErrorRegistry, name: String, astFields: Vector[Field]): FieldResolution
def resolveFieldsPar(tpe: ObjectType[Ctx, _], value: Any, fields: CollectedFields)(scheme: ExecutionScheme): Result[Ctx, Node]
def resolveFieldsSeq(tpe: ObjectType[Ctx, _], value: Any, fields: CollectedFields)(scheme: ExecutionScheme): Result[Ctx, Node]
def resolveFieldsSubs(tpe: ObjectType[Ctx, _], value: Any, fields: CollectedFields)(scheme: ExecutionScheme): Result[Ctx, Node]
def resolveSeq(path: ExecutionPath, tpe: ObjectType[Ctx, _], value: Any, fields: CollectedFields, errorReg: ErrorRegistry): Future[(Result, Ctx)]
def resolveSimpleListValue(simpleRes: Iterable[Result], path: ExecutionPath, optional: Boolean, astPosition: Option[AstLocation]): Result
def resolveSubs[S[_]](path: ExecutionPath, tpe: ObjectType[Ctx, _], value: Any, fields: CollectedFields, errorReg: ErrorRegistry, requestedStream: Option[SubscriptionStream[S]]): (SubscriptionStream[S], S[(Vector[RegisteredError], Node)])
def resolveValue(path: ExecutionPath, astFields: Vector[Field], tpe: OutputType[_], field: Field[Ctx, _], value: Any, userCtx: Ctx, actualType: Option[InputType[_]]): Resolve