Skip to content

index.TypeAlias.Check

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

Type Alias: Check

type Check = (parent, args, context, info) => 
  | RuleResult
| Promise<RuleResult>;

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

The predicate behind a CheckableRule: the standard resolver arguments without resolve, answering "may this field be resolved?".

Parameters

parent

unknown

args

unknown

context

any

info

GraphQLResolveInfo

Returns

| RuleResult | Promise<RuleResult>

Remarks

Because it cannot call the resolver, a check can be evaluated speculatively — which is what lets CheckableRules be combined.

API Reference

Clone this wiki locally