@graphql-tools/wrap

Classes

Interfaces

Type aliases

Functions

Type aliases

DataTransformer

Ƭ DataTransformer: function

Defined in packages/wrap/src/types.ts:75

Type declaration:

▸ (value: any, transformationContext?: Record‹string, any›): any

Parameters:

NameType
valueany
transformationContext?Record‹string, any›

EnumValueTransformer

Ƭ EnumValueTransformer: function

Defined in packages/wrap/src/types.ts:59

Type declaration:

▸ (typeName: string, externalValue: string, enumValueConfig: GraphQLEnumValueConfig): GraphQLEnumValueConfig | [string, GraphQLEnumValueConfig] | null | undefined

Parameters:

NameType
typeNamestring
externalValuestring
enumValueConfigGraphQLEnumValueConfig

ErrorsTransformer

Ƭ ErrorsTransformer: function

Defined in packages/wrap/src/types.ts:79

Type declaration:

▸ (errors: ReadonlyArray‹GraphQLError›, transformationContext: Record‹string, any›): Array‹GraphQLError›

Parameters:

NameType
errorsReadonlyArray‹GraphQLError›
transformationContextRecord‹string, any›

FieldNodeTransformer

Ƭ FieldNodeTransformer: function

Defined in packages/wrap/src/types.ts:65

Type declaration:

▸ (typeName: string, fieldName: string, fieldNode: FieldNode, fragments: Record‹string, FragmentDefinitionNode›, transformationContext: Record‹string, any›): SelectionNode | Array‹SelectionNode›

Parameters:

NameType
typeNamestring
fieldNamestring
fieldNodeFieldNode
fragmentsRecord‹string, FragmentDefinitionNode›
transformationContextRecord‹string, any›

FieldTransformer

Ƭ FieldTransformer: function

Defined in packages/wrap/src/types.ts:47

Type declaration:

▸ (typeName: string, fieldName: string, fieldConfig: GraphQLFieldConfig‹any, any›): GraphQLFieldConfig‹any, any› | [string, GraphQLFieldConfig‹any, any›] | null | undefined

Parameters:

NameType
typeNamestring
fieldNamestring
fieldConfigGraphQLFieldConfig‹any, any›

InputFieldNodeTransformer

Ƭ InputFieldNodeTransformer: function

Defined in packages/wrap/src/types.ts:32

Type declaration:

▸ (typeName: string, fieldName: string, inputFieldNode: ObjectFieldNode, request: Request, delegationContext?: DelegationContext): ObjectFieldNode | Array‹ObjectFieldNode›

Parameters:

NameType
typeNamestring
fieldNamestring
inputFieldNodeObjectFieldNode
requestRequest
delegationContext?DelegationContext

InputFieldTransformer

Ƭ InputFieldTransformer: function

Defined in packages/wrap/src/types.ts:26

Type declaration:

▸ (typeName: string, fieldName: string, inputFieldConfig: GraphQLInputFieldConfig): GraphQLInputFieldConfig | [string, GraphQLInputFieldConfig] | null | undefined

Parameters:

NameType
typeNamestring
fieldNamestring
inputFieldConfigGraphQLInputFieldConfig

InputObjectNodeTransformer

Ƭ InputObjectNodeTransformer: function

Defined in packages/wrap/src/types.ts:40

Type declaration:

▸ (typeName: string, inputObjectNode: ObjectValueNode, request: Request, delegationContext?: DelegationContext): ObjectValueNode

Parameters:

NameType
typeNamestring
inputObjectNodeObjectValueNode
requestRequest
delegationContext?DelegationContext

LeafValueTransformer

Ƭ LeafValueTransformer: function

Defined in packages/wrap/src/types.ts:73

Type declaration:

▸ (typeName: string, value: any): any

Parameters:

NameType
typeNamestring
valueany

ObjectValueTransformerMap

Ƭ ObjectValueTransformerMap: Record‹string, DataTransformer

Defined in packages/wrap/src/types.ts:77


RootFieldTransformer

Ƭ RootFieldTransformer: function

Defined in packages/wrap/src/types.ts:53

Type declaration:

▸ (operation: "Query" | "Mutation" | "Subscription", fieldName: string, fieldConfig: GraphQLFieldConfig‹any, any›): GraphQLFieldConfig‹any, any› | [string, GraphQLFieldConfig‹any, any›] | null | undefined

Parameters:

NameType
operation"Query" | "Mutation" | "Subscription"
fieldNamestring
fieldConfigGraphQLFieldConfig‹any, any›

Functions

defaultCreateProxyingResolver

defaultCreateProxyingResolver(__namedParameters: object): GraphQLFieldResolver‹any, any›

Defined in packages/wrap/src/generateProxyingResolvers.ts:108

Parameters:

__namedParameters: object

NameType
operation"query" | "mutation" | "subscription"
schemaGraphQLSchema‹› | SubschemaConfig
transformedSchemaGraphQLSchema‹›
transformsTransform‹object›[]

Returns: GraphQLFieldResolver‹any, any›


defaultCreateRemoteResolver

defaultCreateRemoteResolver(executor: Executor, subscriber: Subscriber): GraphQLFieldResolver‹any, any›

Defined in packages/wrap/src/makeRemoteExecutableSchema.ts:24

Parameters:

NameType
executorExecutor
subscriberSubscriber

Returns: GraphQLFieldResolver‹any, any›


generateProxyingResolvers

generateProxyingResolvers(subschemaOrSubschemaConfig: GraphQLSchema | SubschemaConfig, transforms: Array‹Transform›): Record‹string, Record‹string, GraphQLFieldResolver‹any, any›››

Defined in packages/wrap/src/generateProxyingResolvers.ts:14

Parameters:

NameType
subschemaOrSubschemaConfigGraphQLSchema | SubschemaConfig
transformsArray‹Transform

Returns: Record‹string, Record‹string, GraphQLFieldResolver‹any, any›››


introspectSchema

introspectSchema(executor: AsyncExecutor, context?: Record‹string, any›, options?: IntrospectionOptions): Promise‹GraphQLSchema›

Defined in packages/wrap/src/introspect.ts:30

Parameters:

NameType
executorAsyncExecutor
context?Record‹string, any›
options?IntrospectionOptions

Returns: Promise‹GraphQLSchema›


introspectSchemaSync

introspectSchemaSync(executor: SyncExecutor, context?: Record‹string, any›, options?: IntrospectionOptions): GraphQLSchema

Defined in packages/wrap/src/introspect.ts:43

Parameters:

NameType
executorSyncExecutor
context?Record‹string, any›
options?IntrospectionOptions

Returns: GraphQLSchema


makeRemoteExecutableSchema

makeRemoteExecutableSchema(__namedParameters: object): GraphQLSchema

Defined in packages/wrap/src/makeRemoteExecutableSchema.ts:8

Parameters:

__namedParameters: object

NameTypeDefault
buildSchemaOptionsBuildSchemaOptions-
createResolverfunctiondefaultCreateRemoteResolver
executorfunction | function-
schemaOrTypeDefsstring | GraphQLSchema‹›-
subscriberfunction-

Returns: GraphQLSchema


wrapSchema

wrapSchema(subschemaOrSubschemaConfig: GraphQLSchema | SubschemaConfig, transforms?: Array‹Transform›): GraphQLSchema

Defined in packages/wrap/src/wrapSchema.ts:14

Parameters:

NameType
subschemaOrSubschemaConfigGraphQLSchema | SubschemaConfig
transforms?Array‹Transform

Returns: GraphQLSchema