• Docs
  • API Reference
  • Interfaces
  • 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:154


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


resolverValidationOptions

Optional resolverValidationOptions: IResolverValidationOptions

Additional options for validating the provided resolvers

Defined in

packages/utils/src/Interfaces.ts:158


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


schema

schema: GraphQLSchema

The schema to which to add resolvers

Defined in

packages/utils/src/Interfaces.ts:146


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