graphql-tools-monorepo / utils/src / IAddResolversToSchemaOptions
Interface: IAddResolversToSchemaOptions
utils/src.IAddResolversToSchemaOptions
Configuration object for adding resolvers to a schema
Table of contents
Properties
- defaultFieldResolver
- inheritResolversFromInterfaces
- resolverValidationOptions
- resolvers
- schema
- updateResolversInPlace
Properties
defaultFieldResolver
• Optional defaultFieldResolver: IFieldResolver<any, any, Record<string, any>, any>
Override the default field resolver provided by graphql-js
Defined in
packages/utils/src/Interfaces.ts:161
inheritResolversFromInterfaces
• Optional inheritResolversFromInterfaces: boolean
GraphQL object types that implement interfaces will inherit any missing
resolvers from their interface types defined in the resolvers object
Defined in
packages/utils/src/Interfaces.ts:170
resolverValidationOptions
• Optional resolverValidationOptions: IResolverValidationOptions
Additional options for validating the provided resolvers
Defined in
packages/utils/src/Interfaces.ts:165
resolvers
• resolvers: IResolvers<any, any, Record<string, any>, any>
Object describing the field resolvers to add to the provided schema
Defined in
packages/utils/src/Interfaces.ts:157
schema
• schema: GraphQLSchema
The schema to which to add resolvers
Defined in
packages/utils/src/Interfaces.ts:153
updateResolversInPlace
• Optional updateResolversInPlace: boolean
Set to true to modify the existing schema instead of creating a new one