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

Interface: IAddResolversToSchemaOptions

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

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

Override the default field resolver provided by graphql-js


inheritResolversFromInterfaces?

optional inheritResolversFromInterfaces?: boolean

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

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

Object describing the field resolvers to add to the provided schema


resolverValidationOptions?

optional resolverValidationOptions?: IResolverValidationOptions

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

Additional options for validating the provided resolvers


schema

schema: GraphQLSchema

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

The schema to which to add resolvers


updateResolversInPlace?

optional updateResolversInPlace?: boolean

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

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