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:156 (opens in a new tab)


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 (opens in a new tab)


resolverValidationOptions

Optional resolverValidationOptions: IResolverValidationOptions

Additional options for validating the provided resolvers

Defined in

packages/utils/src/Interfaces.ts:160 (opens in a new tab)


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 (opens in a new tab)


schema

schema: GraphQLSchema

The schema to which to add resolvers

Defined in

packages/utils/src/Interfaces.ts:148 (opens in a new tab)


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 (opens in a new tab)