Skip to content

index.Interface.RuleOptions

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

Interface: RuleOptions

Defined in: packages/graphql-casl/src/rules.ts:420

Options for rule.

Properties

cache?

optional cache?: 
  | CacheMode
  | CacheKey;

Defined in: packages/graphql-casl/src/rules.ts:427

Reuses the check's answer within a request: a CacheMode, or a CacheKey function for a key of your own. Default 'no_cache'.


name?

optional name?: string;

Defined in: packages/graphql-casl/src/rules.ts:422

Labels the rule in combinator error messages. Defaults to the check's name.

API Reference

Clone this wiki locally