@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


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:33

Parameters:

â–ª __namedParameters: object

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

Returns: GraphQLSchema