Documentation
API Reference
Interfaces
GetStitchedSchemaFromSupergraphSdlOpts

graphql-tools-monorepo / federation/src / GetStitchedSchemaFromSupergraphSdlOpts

Interface: GetStitchedSchemaFromSupergraphSdlOpts

federation/src.GetStitchedSchemaFromSupergraphSdlOpts

Hierarchy

Table of contents

Properties

Methods

Properties

batch

Optional batch: boolean

Enable query batching for all subschemas.

Default

false

Inherited from

GetStitchingOptionsFromSupergraphSdlOpts.batch

Defined in

packages/federation/src/supergraph.ts:101


batchDelegateOptions

Optional batchDelegateOptions: Options<any, any, any>

Configure the batch delegation options for all merged types in all subschemas.

Inherited from

GetStitchingOptionsFromSupergraphSdlOpts.batchDelegateOptions

Defined in

packages/federation/src/supergraph.ts:109


batchingOptions

Optional batchingOptions: BatchingOptions<any, any, any>

Configure the query batching options for all subschemas.

Inherited from

GetStitchingOptionsFromSupergraphSdlOpts.batchingOptions

Defined in

packages/federation/src/supergraph.ts:105


httpExecutorOpts

Optional httpExecutorOpts: Partial<HTTPExecutorOptions> | (subgraphInfo: { endpoint?: string ; name: string }) => Partial<HTTPExecutorOptions>

Inherited from

GetStitchingOptionsFromSupergraphSdlOpts.httpExecutorOpts

Defined in

packages/federation/src/supergraph.ts:91


onMergedTypeConfig

Optional onMergedTypeConfig: (typeName: string, mergedTypeConfig: MergedTypeConfig<any, any, Record<string, any>>) => void

Type declaration

▸ (typeName, mergedTypeConfig): void

Parameters
NameType
typeNamestring
mergedTypeConfigMergedTypeConfig<any, any, Record<string, any>>
Returns

void

Inherited from

GetStitchingOptionsFromSupergraphSdlOpts.onMergedTypeConfig

Defined in

packages/federation/src/supergraph.ts:95


onSubschemaConfig

Optional onSubschemaConfig: (subschemaConfig: FederationSubschemaConfig) => void

Type declaration

▸ (subschemaConfig): void

Parameters
NameType
subschemaConfigFederationSubschemaConfig
Returns

void

Inherited from

GetStitchingOptionsFromSupergraphSdlOpts.onSubschemaConfig

Defined in

packages/federation/src/supergraph.ts:94


supergraphSdl

supergraphSdl: string | DocumentNode

Overrides

GetStitchingOptionsFromSupergraphSdlOpts.supergraphSdl

Defined in

packages/federation/src/supergraph.ts:1205

Methods

onStitchingOptions

onStitchingOptions(opts): void

Parameters

NameTypeDefault value
optsObjectundefined
opts.assumeValidbooleantrue
opts.assumeValidSDLbooleantrue
opts.subschemasSubschemaConfig<any, any, any, Record<string, any>>[]undefined
opts.typeDefsDocumentNodeadditionalTypeDefs
opts.typeMergingOptionsObjectundefined
opts.typeMergingOptions.fieldConfigMerger(candidates: MergeFieldConfigCandidate<Record<string, any>>[]) => GraphQLFieldConfig<any, Record<string, any>, any>undefined
opts.typeMergingOptions.useNonNullableFieldOnConflictbooleantrue
opts.typeMergingOptions.validationSettingsObjectundefined
opts.typeMergingOptions.validationSettings.validationLevelValidationLevelValidationLevel.Off

Returns

void

Defined in

packages/federation/src/supergraph.ts:1206