Docs
API Reference
Interfaces
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:126 (opens in a new tab)


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


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


requireResolversForResolveType

Optional requireResolversForResolveType: ValidatorBehavior

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

Defined in

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


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