Skip to content

index.TypeAlias.PermissionResolver

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

Type Alias: PermissionResolver

type PermissionResolver = (typeName, fieldName) => Rule | undefined;

Defined in: packages/graphql-casl/src/applyPermissions.ts:290

Looks up the rule guarding one field, already wrapped with the error-control and masking options.

Parameters

typeName

string

fieldName

string

Returns

Rule | undefined

Remarks

Returns undefined for a field left unguarded.

This is the whole permission layer minus the binding to graphql-middleware — see resolvePermissions.

API Reference

Clone this wiki locally