FSharp.Data.GraphQL


ResolveFieldContext

Namespace: FSharp.Data.GraphQL.Types

An execution context for the particular field, applied as the first parameter for target resolve function.

Record Fields

Record FieldDescription
Args
Signature: Map<string,obj>

Untyped map of all argument values used for as current field's parametrized inputs.

Context
Signature: ExecutionContext

Current operation execution context.

ExecutionInfo
Signature: ExecutionInfo

Fragment of the overall execution plan related to current field.

ParentType
Signature: ObjectDef

GraphQL type definition for a parent object, current value needs to be resolved from.

ReturnType
Signature: TypeDef

GraphQL type definition for the returned value.

Schema
Signature: ISchema

Current GraphQL schema.

Variables
Signature: Map<string,obj>

Variables provided by the operation caller.

Instance members

Instance memberDescription
AddError(error)
Signature: error:exn -> unit

Remembers an exception, so it can be included in the final response.

Arg(name)
Signature: name:string -> 't
Type parameters: 't

Returns an argument by provided name. If argument was not found and exception will be thrown.

TryArg(name)
Signature: name:string -> 't option
Type parameters: 't

Tries to find an argument by provided name.

Fork me on GitHub