Skip to main content

Interface: IStitchSchemasOptions<TContext\>

stitch/src.IStitchSchemasOptions

Type parameters#

NameType
TContextTContext = Record<string, any\>

Hierarchy#

Table of contents#

Properties#

Properties#

allowUndefinedInResolve#

Optional allowUndefinedInResolve: boolean

Set to false to have resolvers throw an if they return undefined, which can help make debugging easier

Inherited from#

Omit.allowUndefinedInResolve

Defined in#

packages/schema/src/types.ts:38


directiveResolvers#

Optional directiveResolvers: IDirectiveResolvers<any, TContext\>

Map of directive resolvers

Inherited from#

Omit.directiveResolvers

Defined in#

packages/schema/src/types.ts:46


inheritResolversFromInterfaces#

Optional inheritResolversFromInterfaces: boolean

GraphQL object types that implement interfaces will inherit any missing resolvers from their interface types defined in the resolvers object

Inherited from#

Omit.inheritResolversFromInterfaces

Defined in#

packages/schema/src/types.ts:65


logger#

Optional logger: ILogger

Logger instance used to print errors to the server console that are usually swallowed by GraphQL.

Inherited from#

Omit.logger

Defined in#

packages/schema/src/types.ts:33


mergeDirectives#

Optional mergeDirectives: boolean

Defined in#

packages/stitch/src/types.ts:61


mergeTypes#

Optional mergeTypes: boolean | string[] | MergeTypeFilter<TContext\>

Defined in#

packages/stitch/src/types.ts:62


noExtensionExtraction#

Optional noExtensionExtraction: boolean

Do not extract and apply extensions separately and leave it to buildASTSchema

Inherited from#

Omit.noExtensionExtraction

Defined in#

packages/schema/src/types.ts:77


onTypeConflict#

Optional onTypeConflict: OnTypeConflict<Record<string, any\>\>

Defined in#

packages/stitch/src/types.ts:60


parseOptions#

Optional parseOptions: GraphQLParseOptions

Additional options for parsing the type definitions if they are provided as a string

Inherited from#

Omit.parseOptions

Defined in#

packages/schema/src/types.ts:60


pruningOptions#

Optional pruningOptions: PruneSchemaOptions

Additional options for removing unused types from the schema

Inherited from#

Omit.pruningOptions

Defined in#

packages/schema/src/types.ts:69


resolverValidationOptions#

Optional resolverValidationOptions: IResolverValidationOptions

Additional options for validating the provided resolvers

Inherited from#

Omit.resolverValidationOptions

Defined in#

packages/schema/src/types.ts:42


resolvers#

Optional resolvers: IResolvers<any, TContext, Record<string, any\>, any\> | IResolvers<any, TContext, Record<string, any\>, any\>[]

Object describing the field resolvers for the provided type definitions

Inherited from#

Omit.resolvers

Defined in#

packages/schema/src/types.ts:28


schemaDirectives#

Optional schemaDirectives: Record<string, typeof SchemaDirectiveVisitor\>

A map of schema directives used with the legacy class-based implementation of schema directives

Inherited from#

Omit.schemaDirectives

Defined in#

packages/schema/src/types.ts:51


schemaTransforms#

Optional schemaTransforms: ExecutableSchemaTransformation[]

An array of schema transformation functions

Inherited from#

Omit.schemaTransforms

Defined in#

packages/schema/src/types.ts:55


subschemaConfigTransforms#

Optional subschemaConfigTransforms: SubschemaConfigTransform<TContext\>[]

Defined in#

packages/stitch/src/types.ts:64


subschemas#

Optional subschemas: (GraphQLSchema | SubschemaConfig<any, any, any, TContext\> | SubschemaConfig<any, any, any, TContext\>[])[]

Defined in#

packages/stitch/src/types.ts:55


typeDefs#

Optional typeDefs: ITypeDefinitions

Defined in#

packages/stitch/src/types.ts:58


typeMergingOptions#

Optional typeMergingOptions: TypeMergingOptions<TContext\>

Defined in#

packages/stitch/src/types.ts:63


types#

Optional types: GraphQLNamedType[]

Defined in#

packages/stitch/src/types.ts:59


updateResolversInPlace#

Optional updateResolversInPlace: boolean

Do not create a schema again and use the one from buildASTSchema

Inherited from#

Omit.updateResolversInPlace

Defined in#

packages/schema/src/types.ts:73