Documentation
API Reference
Interfaces
IResolverValidationOptions

graphql-tools-monorepo / utils/src / IResolverValidationOptions

Interface: IResolverValidationOptions

utils/src.IResolverValidationOptions

Options for validating resolvers

Table of contents

Properties

Properties

requireResolversForAllFields

Optional requireResolversForAllFields: ValidatorBehavior

Enable to require a resolver for be defined for all fields defined in the schema. Defaults to ignore.

Defined in

packages/utils/src/Interfaces.ts:128


requireResolversForArgs

Optional requireResolversForArgs: ValidatorBehavior

Enable to require a resolver to be defined for any field that has arguments. Defaults to ignore.

Defined in

packages/utils/src/Interfaces.ts:118


requireResolversForNonScalar

Optional requireResolversForNonScalar: ValidatorBehavior

Enable to require a resolver to be defined for any field which has a return type that isn’t a scalar. Defaults to ignore.

Defined in

packages/utils/src/Interfaces.ts:123


requireResolversForResolveType

Optional requireResolversForResolveType: ValidatorBehavior

Enable to require a resolveType() for Interface and Union types. Defaults to ignore.

Defined in

packages/utils/src/Interfaces.ts:133


requireResolversToMatchSchema

Optional requireResolversToMatchSchema: ValidatorBehavior

Enable to require all defined resolvers to match fields that actually exist in the schema. Defaults to error to catch common errors.

Defined in

packages/utils/src/Interfaces.ts:138