Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/schemasrcinterfacesIExecutableSchemaDefinition

Interface: IExecutableSchemaDefinition<TContext>

Defined in: packages/schema/src/types.ts:17

Configuration object for creating an executable schema

Extends

Type Parameters

TContext

TContext = any

Properties

allowLegacySDLEmptyFields?

optional allowLegacySDLEmptyFields?: boolean

Defined in: packages/utils/src/Interfaces.ts:109

Inherited from

GraphQLParseOptions.allowLegacySDLEmptyFields


allowLegacySDLImplementsInterfaces?

optional allowLegacySDLImplementsInterfaces?: boolean

Defined in: packages/utils/src/Interfaces.ts:110

Inherited from

GraphQLParseOptions.allowLegacySDLImplementsInterfaces


assumeValid?

optional assumeValid?: boolean

Defined in: node_modules/graphql/type/schema.d.ts:146

When building a schema from a GraphQL service’s introspection result, it might be safe to assume the schema is valid. Set to true to assume the produced schema is valid.

Default: false

Inherited from

BuildSchemaOptions.assumeValid


assumeValidSDL?

optional assumeValidSDL?: boolean

Defined in: node_modules/graphql/utilities/buildASTSchema.d.ts:12

Set to true to assume the SDL is valid.

Default: false

Inherited from

BuildSchemaOptions.assumeValidSDL


commentDescriptions?

optional commentDescriptions?: boolean

Defined in: packages/utils/src/Interfaces.ts:117

Set to true in order to convert all GraphQL comments (marked with # sign) to descriptions (""") GraphQL has built-in support for transforming descriptions to comments (with print), but not while parsing. Turning the flag on will support the other way as well (parse)

Inherited from

GraphQLParseOptions.commentDescriptions


defaultFieldResolver?

optional defaultFieldResolver?: GraphQLFieldResolver<any, TContext>

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

Default field resolver


experimentalFragmentVariables?

optional experimentalFragmentVariables?: boolean

Defined in: packages/utils/src/Interfaces.ts:111

Inherited from

GraphQLParseOptions.experimentalFragmentVariables


inheritResolversFromInterfaces?

optional inheritResolversFromInterfaces?: boolean

Defined in: packages/schema/src/types.ts:35

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


noLocation?

optional noLocation?: boolean

Defined in: packages/utils/src/Interfaces.ts:108

Inherited from

GraphQLParseOptions.noLocation


resolvers?

optional resolvers?: IResolvers<any, TContext> | IResolvers<any, TContext>[]

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

Object describing the field resolvers for the provided type definitions


resolverValidationOptions?

optional resolverValidationOptions?: IResolverValidationOptions

Defined in: packages/schema/src/types.ts:30

Additional options for validating the provided resolvers


schemaExtensions?

optional schemaExtensions?: SchemaExtensions | SchemaExtensions[]

Defined in: packages/schema/src/types.ts:43

Schema extensions


typeDefs

typeDefs: TypeSource

Defined in: packages/schema/src/types.ts:22

The type definitions used to create the schema


updateResolversInPlace?

optional updateResolversInPlace?: boolean

Defined in: packages/schema/src/types.ts:39

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