Documentation
API Reference
Interfaces
DelegationContext

graphql-tools-monorepo / delegate/src / DelegationContext

Interface: DelegationContext<TContext>

delegate/src.DelegationContext

Type parameters

NameType
TContextRecord<string, any>

Table of contents

Properties

Properties

args

Optional args: Record<string, any>

Defined in

packages/delegate/src/types.ts:51


context

Optional context: TContext

Defined in

packages/delegate/src/types.ts:52


fieldName

fieldName: string

Defined in

packages/delegate/src/types.ts:50


info

Optional info: GraphQLResolveInfo

Defined in

packages/delegate/src/types.ts:53


onLocatedError

Optional onLocatedError: (originalError: GraphQLError) => GraphQLError

Type declaration

▸ (originalError): GraphQLError

Parameters
NameType
originalErrorGraphQLError
Returns

GraphQLError

Defined in

packages/delegate/src/types.ts:55


operation

operation: OperationTypeNode

Defined in

packages/delegate/src/types.ts:49


returnType

returnType: GraphQLOutputType

Defined in

packages/delegate/src/types.ts:54


rootValue

Optional rootValue: any

Defined in

packages/delegate/src/types.ts:56


skipTypeMerging

skipTypeMerging: boolean

Defined in

packages/delegate/src/types.ts:59


subschema

subschema: GraphQLSchema | SubschemaConfig<any, any, any, TContext>

Defined in

packages/delegate/src/types.ts:46


subschemaConfig

Optional subschemaConfig: SubschemaConfig<any, any, any, TContext>

Defined in

packages/delegate/src/types.ts:47


targetSchema

targetSchema: GraphQLSchema

Defined in

packages/delegate/src/types.ts:48


transformedSchema

transformedSchema: GraphQLSchema

Defined in

packages/delegate/src/types.ts:58


transforms

transforms: Transform<any, TContext>[]

Defined in

packages/delegate/src/types.ts:57