Skip to content

index.Interface.ValidateArgsOptions

github-actions[bot] edited this page Nov 30, 2026 · 10 revisions

Interface: ValidateArgsOptions

Defined in: packages/graphql-casl/src/validateArgs.ts:132

Options for validateArgs.

Properties

replace?

optional replace?: boolean;

Defined in: packages/graphql-casl/src/validateArgs.ts:146

Whether the resolver receives the schema's parsed output in place of the raw arguments.

Remarks

Defaults to true, which is the point of a Standard Schema — defaults, coercion and transforms reach the resolver.

false validates only: the arguments the resolver sees are exactly the ones GraphQL coerced, and the schema's output is discarded. Use it when a schema's transforms are for checking rather than for shaping, or when a generated resolver must see its arguments untouched.

API Reference

Clone this wiki locally