Ctx<P> class
The context for a resolver in a given request. Contains the args passed as input, the parent object, the selected fields in lookahead, the scoped values in scope and other parent context such as objectCtx and the executionCtx for the request.
- Implemented types
Constructors
-
Ctx({required Map<
String, Object?> args, required ObjectExecutionCtx<Object?> objectCtx, required GraphQLObjectField<Object?, Object?, Object?> field, required String pathItem, required PossibleSelections? lookahead()}) -
The context for a resolver in a given request. Contains the args
passed as input, the parent object, the selected fields in lookahead,
the scoped values in scope and other parent context such as objectCtx
and the executionCtx for the request.
const
Properties
-
args
→ Map<
String, Object?> -
The arguments passed as input
final
- executionCtx → ExecutionCtx
-
The execution context for this request
no setter
-
field
→ GraphQLObjectField<
Object?, Object?, Object?> -
The field associated with this resolve context
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lookahead → PossibleSelections? Function()
-
Function that computes the selected fields of the object or union
associated with this context
final
- object → P
-
The parent object value
no setter
-
objectCtx
→ ObjectExecutionCtx<
Object?> -
The parent object context
final
-
path
→ List<
Object> -
The complete path to this field in the GraphQL request
no setter
- pathItem → String
-
The alias or field name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → ScopedMap
-
The tree of values for this scope
no setteroverride
Methods
-
cast<
T> () → Ctx< T> -
Cast the
P
parent type into a genericT
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited