@graphql-tools/stitch

Variables#

Functions#

Variables#

Const defaultSubschemaConfigTransforms#

• defaultSubschemaConfigTransforms: function[] = [computedDirectiveTransformer('computed')]

Defined in packages/stitch/src/subschemaConfigTransforms/index.ts:4

Functions#

computedDirectiveTransformer#

â–¸ computedDirectiveTransformer(computedDirectiveName: string): SubschemaConfigTransform

Defined in packages/stitch/src/subschemaConfigTransforms/computedDirectiveTransformer.ts:6

Parameters:

NameType
computedDirectiveNamestring

Returns: SubschemaConfigTransform


createMergedTypeResolver#

â–¸ createMergedTypeResolver(mergedTypeResolverOptions: MergedTypeResolverOptions): MergedTypeResolver

Defined in packages/stitch/src/createMergedTypeResolver.ts:5

Parameters:

NameType
mergedTypeResolverOptionsMergedTypeResolverOptions

Returns: MergedTypeResolver


Const forwardArgsToSelectionSet#

▸ forwardArgsToSelectionSet(selectionSet: string, mapping?: Record‹string, string[]›): (Anonymous function)

Defined in packages/stitch/src/selectionSetArgs.ts:7

Parameters:

NameType
selectionSetstring
mapping?Record‹string, string[]›

Returns: (Anonymous function)


isolateComputedFields#

▸ isolateComputedFields(subschemaConfig: SubschemaConfig): Array‹SubschemaConfig›

Defined in packages/stitch/src/isolateComputedFields.ts:9

Parameters:

NameType
subschemaConfigSubschemaConfig

Returns: Array‹SubschemaConfig›


stitchSchemas#

â–¸ stitchSchemas(__namedParameters: object): GraphQLSchema

Defined in packages/stitch/src/stitchSchemas.ts:31

Parameters:

â–ª __namedParameters: object

NameTypeDefault
allowUndefinedInResolvebooleantrue
directiveResolversIDirectiveResolvers‹any, any›-
inheritResolversFromInterfacesbooleanfalse
loggerILogger-
mergeDirectivesboolean-
mergeTypesfalse | true | string[] | functiontrue
onTypeConflictfunction-
parseOptionsGraphQLParseOptions-
pruningOptionsPruneSchemaOptions-
resolverValidationOptionsIResolverValidationOptions-
resolversobject | object[]-
schemaDirectivesobject-
schemaTransformsfunction[][]
subschemaConfigTransformsfunction[]defaultSubschemaConfigTransforms
subschemasGraphQLSchema‹› | SubschemaConfig‹any, any, any› | SubschemaConfig‹any, any, any›[][][]
typeDefsstring | DocumentNode | string | DocumentNode | function[]-
typeMergingOptionsTypeMergingOptions-
typesGraphQLScalarType‹› | GraphQLObjectType‹any, any› | GraphQLInterfaceType‹› | GraphQLUnionType‹› | GraphQLEnumType‹› | GraphQLInputObjectType‹›[][]

Returns: GraphQLSchema