Documentation
API Reference
Interfaces
IAddResolversToSchemaOptions

graphql-tools-monorepo / utils/src / IAddResolversToSchemaOptions

Interface: IAddResolversToSchemaOptions

utils/src.IAddResolversToSchemaOptions

Configuration object for adding resolvers to a schema

Table of contents

Properties

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:156


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:165


resolverValidationOptions

Optional resolverValidationOptions: IResolverValidationOptions

Additional options for validating the provided resolvers

Defined in

packages/utils/src/Interfaces.ts:160


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:152


schema

schema: GraphQLSchema

The schema to which to add resolvers

Defined in

packages/utils/src/Interfaces.ts:148


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:169