utils_src.iaddresolverstoschemaoptions
#
Interface: IAddResolversToSchemaOptionsutils/src.IAddResolversToSchemaOptions
Configuration object for adding resolvers to a schema
#
Hierarchy- IAddResolversToSchemaOptions
#
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:139
#
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:148
#
resolverValidationOptions• Optional
resolverValidationOptions: IResolverValidationOptions
Additional options for validating the provided resolvers
Defined in: packages/utils/src/Interfaces.ts:143
#
resolvers• resolvers: Record<string, IUnionTypeResolver | IScalarTypeResolver | IEnumTypeResolver | IInputObjectTypeResolver | IFieldResolver<any, any, Record<string, any\>, any\> | IObjectTypeResolver<any, any, any\> | IInterfaceTypeResolver<any, any, any\>\>
Object describing the field resolvers to add to the provided schema
Defined in: packages/utils/src/Interfaces.ts:135
#
schema• schema: GraphQLSchema
The schema to which to add resolvers
Defined in: packages/utils/src/Interfaces.ts:131
#
updateResolversInPlace• Optional
updateResolversInPlace: boolean
Set to true
to modify the existing schema instead of creating a new one
Defined in: packages/utils/src/Interfaces.ts:152