Context
sangria.schema.Context
case class Context[Ctx, Val](value: Val, ctx: Ctx, args: Args, schema: Schema[Ctx, Val], field: Field[Ctx, Val], parentType: ObjectType[Ctx, Any], marshaller: ResultMarshaller, query: Document, sourceMapper: Option[SourceMapper], deprecationTracker: Option[DeprecationTracker], astFields: Vector[Field], path: ExecutionPath, deferredResolverState: Any, middlewareAttachments: Vector[MiddlewareAttachment]) extends WithArguments, WithInputTypeRendering[Ctx]
The context of a field during schema resolution.
When a GraphQL request is executed by a Sangria server, each field in the request is resolved to determine the data that should be returned. An instance of this class provides the context for a particular field's resolution.
Type parameters
- Ctx
-
Type of the context object that was passed to Sangria's execution method.
- Val
-
Type of the object to which the field belongs.
Value parameters
- ctx
-
The context object that was passed to Sangria's execution method.
- value
-
The object to which the field belongs.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithInputTypeRendering[Ctx]trait WithArgumentsclass Objecttrait Matchableclass Any
Members list
In this article