Interface: IExecutableSchemaDefinition<TContext>
Defined in: packages/schema/src/types.ts:17
Configuration object for creating an executable schema
Extends
BuildSchemaOptions.GraphQLParseOptions
Type Parameters
TContext
TContext = any
Properties
allowLegacySDLEmptyFields?
optionalallowLegacySDLEmptyFields?:boolean
Defined in: packages/utils/src/Interfaces.ts:109
Inherited from
GraphQLParseOptions.allowLegacySDLEmptyFields
allowLegacySDLImplementsInterfaces?
optionalallowLegacySDLImplementsInterfaces?:boolean
Defined in: packages/utils/src/Interfaces.ts:110
Inherited from
GraphQLParseOptions.allowLegacySDLImplementsInterfaces
assumeValid?
optionalassumeValid?: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?
optionalassumeValidSDL?: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?
optionalcommentDescriptions?: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?
optionaldefaultFieldResolver?:GraphQLFieldResolver<any,TContext>
Defined in: packages/schema/src/types.ts:47
Default field resolver
experimentalFragmentVariables?
optionalexperimentalFragmentVariables?:boolean
Defined in: packages/utils/src/Interfaces.ts:111
Inherited from
GraphQLParseOptions.experimentalFragmentVariables
inheritResolversFromInterfaces?
optionalinheritResolversFromInterfaces?: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?
optionalnoLocation?:boolean
Defined in: packages/utils/src/Interfaces.ts:108
Inherited from
GraphQLParseOptions.noLocation
resolvers?
optionalresolvers?: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?
optionalresolverValidationOptions?:IResolverValidationOptions
Defined in: packages/schema/src/types.ts:30
Additional options for validating the provided resolvers
schemaExtensions?
optionalschemaExtensions?: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?
optionalupdateResolversInPlace?:boolean
Defined in: packages/schema/src/types.ts:39
Do not create a schema again and use the one from buildASTSchema