Ctx<P> constructor

const Ctx<P>({
  1. required Map<String, Object?> args,
  2. required ObjectExecutionCtx<Object?> objectCtx,
  3. required GraphQLObjectField<Object?, Object?, Object?> field,
  4. required String pathItem,
  5. 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.

Implementation

const Ctx({
  required this.args,
  required this.objectCtx,
  required this.field,
  required this.pathItem,
  required this.lookahead,
});