Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcinterfacesIAddResolversToSchemaOptions

Interface: IAddResolversToSchemaOptions

Defined in: packages/utils/src/Interfaces.ts:190 

Configuration object for adding resolvers to a schema

Properties

defaultFieldResolver?

optional defaultFieldResolver?: IFieldResolver<any, any, Record<string, any>, any>

Defined in: packages/utils/src/Interfaces.ts:202 

Override the default field resolver provided by graphql-js


inheritResolversFromInterfaces?

optional inheritResolversFromInterfaces?: boolean

Defined in: packages/utils/src/Interfaces.ts:211 

GraphQL object types that implement interfaces will inherit any missing resolvers from their interface types defined in the resolvers object


resolvers

resolvers: IResolvers

Defined in: packages/utils/src/Interfaces.ts:198 

Object describing the field resolvers to add to the provided schema


resolverValidationOptions?

optional resolverValidationOptions?: IResolverValidationOptions

Defined in: packages/utils/src/Interfaces.ts:206 

Additional options for validating the provided resolvers


schema

schema: GraphQLSchema

Defined in: packages/utils/src/Interfaces.ts:194 

The schema to which to add resolvers


updateResolversInPlace?

optional updateResolversInPlace?: boolean

Defined in: packages/utils/src/Interfaces.ts:215 

Set to true to modify the existing schema instead of creating a new one