Skip to content

index.Interface.SkeletonAdapter

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

Interface: SkeletonAdapter<TFilter>

Defined in: packages/graphql-casl/src/conditions.ts:99

A dialect that controls the boolean skeleton and passes conditions through verbatim.

Remarks

The leaves are the rule's conditions as written, so a rule using $in still yields $in inside a Prisma-shaped tree. Use a LeafAdapter when the target dialect spells its comparisons differently.

Extends

Type Parameters

TFilter

TFilter

Properties

leaf?

optional leaf?: undefined;

Defined in: packages/graphql-casl/src/conditions.ts:105

Methods

and()

and(filters): TFilter;

Defined in: packages/graphql-casl/src/conditions.ts:78

All of these must hold.

Parameters

filters

TFilter[]

Returns

TFilter

Inherited from

AdapterCore.and


everything()

everything(): TFilter;

Defined in: packages/graphql-casl/src/conditions.ts:82

The filter that matches every row — no restriction at all.

Returns

TFilter

Inherited from

AdapterCore.everything


nothing()?

optional nothing(): TFilter;

Defined in: packages/graphql-casl/src/conditions.ts:87

The filter that matches no row. Optional, and only used by argument scoping's onDenyAll: 'nothing'.

Returns

TFilter

Inherited from

AdapterCore.nothing


or()

or(filters): TFilter;

Defined in: packages/graphql-casl/src/conditions.ts:80

Any of these may hold.

Parameters

filters

TFilter[]

Returns

TFilter

Inherited from

AdapterCore.or


rule()

rule(conditions, inverted): TFilter;

Defined in: packages/graphql-casl/src/conditions.ts:104

One rule's conditions as a filter. An inverted rule (cannot) must come back negated — it is a restriction, not a permission.

Parameters

conditions

object

inverted

boolean

Returns

TFilter

API Reference

Clone this wiki locally